Closed llvmbot closed 12 years ago
Hi clang developers,
while compiling the following code I get a segfault.
clang_crash.cpp:
template class Outer { public: class Inner { public: //Inner(); enum { VAL1 = 1 }; //static const int VAL1=1;
char b[100-VAL1];
};
Inner inner; };
Outer outer;
/usr> clang++ clang_crash.cpp clang: error: unable to execute command: Segmentation fault
Some observations:
uncommenting the Inner() constructor causes about 20 identical errors to be printed out:
clang_crash.cpp:8:5: error: constructor cannot be redeclared Inner();
Afterwards, clang still segfaults.
I have attached the source, preprocessed source and the run script.
clang version 3.1 (trunk 153100) Target: x86_64-unknown-linux-gnu Thread model: posix
Could you have a look please?
Best regards, Martin
Fixed in r153236.
Extended Description
Hi clang developers,
while compiling the following code I get a segfault.
clang_crash.cpp:
template
class Outer
{
public:
class Inner
{
public:
//Inner();
enum {
VAL1 = 1
};
//static const int VAL1=1;
};
Inner inner; };
Outer outer;
/usr> clang++ clang_crash.cpp clang: error: unable to execute command: Segmentation fault
Some observations:
uncommenting the Inner() constructor causes about 20 identical errors to be printed out:
clang_crash.cpp:8:5: error: constructor cannot be redeclared Inner();
Afterwards, clang still segfaults.
I have attached the source, preprocessed source and the run script.
clang version 3.1 (trunk 153100) Target: x86_64-unknown-linux-gnu Thread model: posix
Could you have a look please?
Best regards, Martin