This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Does GCC 3.4 fix this bug?
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 11 Sep 2003 11:07:03 -0500
- Subject: Does GCC 3.4 fix this bug?
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