------- 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" <[EMAIL PROTECTED]> 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

Reply via email to