This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]