This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33101] New: C++ error on valid code: <anonymous> has incomplete type
- From: "ian at airs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Aug 2007 23:32:19 -0000
- Subject: [Bug c++/33101] New: C++ error on valid code: <anonymous> has incomplete type
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This C++ test case works with gcc 4.1.1. With gcc 4.2 and with mainline it
gets an inexplicable error.
typedef void v;
typedef v (*pf)(v);
foo.cc:2: error: ?<anonymous>? has incomplete type
foo.cc:2: error: invalid use of ?v?
--
Summary: C++ error on valid code: <anonymous> has incomplete type
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ian at airs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33101