This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32364] New: Error from simple typedef/void combination
- From: "skunk at iskunk dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jun 2007 04:38:47 -0000
- Subject: [Bug c++/32364] New: Error from simple typedef/void combination
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Came across this head-scratcher in building Qt with GCC 4.2.0. Heavily
simplified version:
foo.cxx:
typedef void (*funcptr)(void);
typedef void GLvoid;
typedef GLvoid (*_GLUfuncptr)(GLvoid);
int foo(void) { return 1; }
$ g++ -c foo.cxx
foo.cxx:4: error: '<anonymous>' has incomplete type
foo.cxx:4: error: invalid use of 'GLvoid'
Compiles fine with 4.1.2 and 2.95.4.
--
Summary: Error from simple typedef/void combination
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: skunk at iskunk dot org
GCC build triplet: i386-unknown-freebsd4.8
GCC host triplet: i386-unknown-freebsd4.8
GCC target triplet: i386-unknown-freebsd4.8
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32364