This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52071] Constructor invocation confused
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 31 Jan 2012 20:04:05 +0000
- Subject: [Bug c++/52071] Constructor invocation confused
- Auto-submitted: auto-generated
- References: <bug-52071-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52071
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-31 20:04:05 UTC ---
> vc = (C2(C1(x = y)));
I don't know what the C++ standard says but GCC is parsing this as a function
declaration.
Comeau C++ online parses it as a constructor.