[Bug c++/16285] New: cp parser is confused by __complex__

bothner at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jun 29 23:19:00 GMT 2004


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



More information about the Gcc-bugs mailing list