Does GCC 3.4 fix this bug?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux