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++/33101] Bad C++ error on invalid code: <anonymous> has incomplete type



------- Comment #7 from gdr at cs dot tamu dot edu  2007-08-18 19:52 -------
Subject: Re:  C++ error on valid code: <anonymous> has incomplete type

"ian at airs dot com" <gcc-bugzilla@gcc.gnu.org> writes:

| Thanks for the explanation.  That is new to me.

Check for "abomination" in D&E :-)

| I am now going to reopen this bug because the error message is terrible. 
There
| is no anonymous or incomplete type here.

Well, I believe the parameter is unnamed, and its type is incomplete.

|  gcc should perhaps print something
| like
| 
| error: invalid use of typedef 'v' in function parameter declaration

That is also obscure :-)

Maybe you want

  error: invalid use of typedef-name for type 'void' in a function
         parameter declaration
  note: 'void' can be used as a function parameter only if it appears
        lexically as a keyword

?

-- Gaby


-- 


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


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