help-gplusplus
[Top][All Lists]
Advanced

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

Is 3.2.2 parsing bug fixed in later versions?


From: John Max Skaller
Subject: Is 3.2.2 parsing bug fixed in later versions?
Date: Thu, 14 Oct 2004 11:02:05 +1000
User-agent: Pan/0.13.3 (That cat's something I can't explain)

There is a really nasty bug in the g++ 3.2.2 parser:
it can't parse this:

  typedef int T;
  T x = (T());

I would guess this is fixed in the later versions
(which use a hand crafted parser?)

Can someone confirm that please?

I will have to use a workaround:

T x = (0,T());

seems to work.. I cannot elide the outer brackets (they're
generated).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]