This is the mail archive of the gcc-bugs@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]

[Bug c++/55280] Compiler error: Class definition is recognized as function declaration


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!


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