public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16285] New: cp parser is confused by __complex__
@ 2004-06-29 23:19 bothner at gcc dot gnu dot org
  2004-06-29 23:49 ` [Bug c++/16285] " bothner at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: bothner at gcc dot gnu dot org @ 2004-06-29 23:19 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/16285] cp parser is confused by __complex__
  2004-06-29 23:19 [Bug c++/16285] New: cp parser is confused by __complex__ bothner at gcc dot gnu dot org
@ 2004-06-29 23:49 ` bothner at gcc dot gnu dot org
  2004-06-29 23:56 ` bothner at gcc dot gnu dot org
  2004-07-10  0:30 ` [Bug c++/16285] [3.5 Regression] " pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: bothner at gcc dot gnu dot org @ 2004-06-29 23:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bothner at gcc dot gnu dot org  2004-06-29 23:19 -------
To clarify:  The testcase can be run on GNU/Linux native;
no need to build a MinGW cross-compiler.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16285


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/16285] cp parser is confused by __complex__
  2004-06-29 23:19 [Bug c++/16285] New: cp parser is confused by __complex__ bothner at gcc dot gnu dot org
  2004-06-29 23:49 ` [Bug c++/16285] " bothner at gcc dot gnu dot org
@ 2004-06-29 23:56 ` bothner at gcc dot gnu dot org
  2004-07-10  0:30 ` [Bug c++/16285] [3.5 Regression] " pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: bothner at gcc dot gnu dot org @ 2004-06-29 23:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bothner at gcc dot gnu dot org  2004-06-29 23:49 -------
Oops - that's what I get for being behind in reading gcc mail.
(I'm still confused why I didn't see the failure on GNU/Linux native;
probably some version skew.)
I did an update, and am building for MinGW now; it seems to be safely
through with libstdc++.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16285


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/16285] [3.5 Regression] cp parser is confused by __complex__
  2004-06-29 23:19 [Bug c++/16285] New: cp parser is confused by __complex__ bothner at gcc dot gnu dot org
  2004-06-29 23:49 ` [Bug c++/16285] " bothner at gcc dot gnu dot org
  2004-06-29 23:56 ` bothner at gcc dot gnu dot org
@ 2004-07-10  0:30 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-10  0:30 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid, wrong-code
            Summary|cp parser is confused by    |[3.5 Regression] cp parser
                   |__complex__                 |is confused by __complex__
   Target Milestone|---                         |3.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16285


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-07-10  0:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-29 23:19 [Bug c++/16285] New: cp parser is confused by __complex__ bothner at gcc dot gnu dot org
2004-06-29 23:49 ` [Bug c++/16285] " bothner at gcc dot gnu dot org
2004-06-29 23:56 ` bothner at gcc dot gnu dot org
2004-07-10  0:30 ` [Bug c++/16285] [3.5 Regression] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).