This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16285] New: cp parser is confused by __complex__
- From: "bothner at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jun 2004 23:18:27 -0000
- Subject: [Bug c++/16285] New: cp parser is confused by __complex__
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This is somewhat strange: MinGW fails to bootstrap because of
this problem, but GNU/Linux native does boostrap. However,
gdb show that the problem is also on GNU/Linux. The MinGW
boostrap fails when compiling <complex>; here is a stand-alone
"testcase":
$ cat >foo.cc
typedef __complex__ long double myComplexT;
myComplexT foo;
$ gdb $builddir/gcc/cc1plus
(gdb) b grokdeclarator
(gdb) run /tmp/foo.cc -quiet -o /tmp/foo.s
(gdb) cont
(gdb) set debug_tree(declspecs.type)
<type_decl 0xf6cf81d0 myComplexT
type <complex_type 0xf6cf8244 myComplexT
type <integer_type 0xf6dd3740 long int SI
...
The type 0xf6dd3740 should be 'long double', not 'long int'.
--
Summary: cp parser is confused by __complex__
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: mark at codesourcery dot com
ReportedBy: bothner at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16285