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++/15672] wierd error reported


------- Additional Comments From giovannibajo at libero dot it  2004-05-28 01:24 -------
Ivan, the ambiguity between object constructor calls and function declarations 
is a long-time wart in C++. Another way to fix this (instead of adding a level 
of parenthesis) is using the syntax "A a = x;" or "A a = A(x);" to construct 
the object, instead of "A a(x);". 

For the error message, "main()::type" is really weird, and unusual for GCC, as 
far as I can tell. I'll open this as a diagnostic bug.



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15672


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