This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/55280] Compiler error: Class definition is recognized as function declaration
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 12 Nov 2012 09:16:39 +0000
- Subject: [Bug c++/55280] Compiler error: Class definition is recognized as function declaration
- Auto-submitted: auto-generated
- References: <bug-55280-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55280
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-11-12 09:16:39 UTC ---
As Andrew said, this is not a bug, see
http://en.wikipedia.org/wiki/Most_vexing_parse
You can force it to be parsed as a variable declaration with A a((B()))