Does GCC 3.4 fix this bug?
Eljay Love-Jensen
eljay@adobe.com
Thu Sep 11 16:07:00 GMT 2003
Hi everyone,
Does anyone know if this annoying bug in GCC is going to be fixed in 3.4?
--------8<--------
class Foo
{
public:
Foo();
};
Foo::Foo()
{
}
class Bar
{
public:
Bar(const Foo& foo) { }
void print() { }
};
int main()
{
Bar quux(Foo()); // -- Bug in GCC 3.2 & 3.3
//Bar quux((0,Foo())); // -- workaround in GCC 3.2 & 3.3
quux.print();
}
--------8<--------
(Or if GCC 3.2/3.3 are correct, let me know that I'm mistaken about the ISO 14882 standard.)
Thanks,
--Eljay
More information about the Gcc-help
mailing list