This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33101] Bad C++ error on invalid code: <anonymous> has incomplete type
- From: "gdr at cs dot tamu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Aug 2007 19:52:18 -0000
- Subject: [Bug c++/33101] Bad C++ error on invalid code: <anonymous> has incomplete type
- References: <bug-33101-1313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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