Bug#357944: g++-4.0: g++ compiles invalid code for object instantiation like MyClass obj(obj);

2006-03-20 Thread Michael Weitzel
Package: g++-4.0 Version: 4.0.3-1 Severity: normal g++ compiles the following wrong C++ code without complaining: #include complex class A { public: A() {} }; int main() { std::complexdouble bla(bla); A blubb(blubb); } This bug also affects g++-3.4.

Bug#357944: g++-4.0: g++ compiles invalid code for object instantiation like MyClass obj(obj);

2006-03-20 Thread Falk Hueffner
Michael Weitzel [EMAIL PROTECTED] writes: Package: g++-4.0 Version: 4.0.3-1 Severity: normal g++ compiles the following wrong C++ code without complaining: #include complex class A { public: A() {} }; int main() { std::complexdouble bla(bla); A