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: "guangmuzhu at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 12 Nov 2012 09:22:01 +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
--- Comment #3 from Guangmu Zhu <guangmuzhu at gmail dot com> 2012-11-12 09:22:01 UTC ---
(In reply to comment #2)
> 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()))
I got it. Thanks a lot!