public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33207]  New: [4.3 regression] ICE redeclaring namespace as struct
@ 2007-08-27 21:30 reichelt at gcc dot gnu dot org
  2007-08-27 21:30 ` [Bug c++/33207] " reichelt at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-08-27 21:30 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE on mainline
(it was wrongly accepted before):

====================
namespace N { }
struct N;
struct N* p;
====================

bug.cc:2: error: 'struct N' redeclared as different kind of symbol
bug.cc:1: error: previous declaration of 'namespace N { }'
bug.cc:3: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3 regression] ICE redeclaring namespace as struct
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c++/33207] [4.3 regression] ICE redeclaring namespace as struct
  2007-08-27 21:30 [Bug c++/33207] New: [4.3 regression] ICE redeclaring namespace as struct reichelt at gcc dot gnu dot org
@ 2007-08-27 21:30 ` reichelt at gcc dot gnu dot org
  2007-08-27 21:31 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-08-27 21:30 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.0


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


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

* [Bug c++/33207] [4.3 regression] ICE redeclaring namespace as struct
  2007-08-27 21:30 [Bug c++/33207] New: [4.3 regression] ICE redeclaring namespace as struct reichelt at gcc dot gnu dot org
  2007-08-27 21:30 ` [Bug c++/33207] " reichelt at gcc dot gnu dot org
@ 2007-08-27 21:31 ` pinskia at gcc dot gnu dot org
  2007-09-01 19:57 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-27 21:31 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor


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


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

* [Bug c++/33207] [4.3 regression] ICE redeclaring namespace as struct
  2007-08-27 21:30 [Bug c++/33207] New: [4.3 regression] ICE redeclaring namespace as struct reichelt at gcc dot gnu dot org
  2007-08-27 21:30 ` [Bug c++/33207] " reichelt at gcc dot gnu dot org
  2007-08-27 21:31 ` pinskia at gcc dot gnu dot org
@ 2007-09-01 19:57 ` pinskia at gcc dot gnu dot org
  2007-09-05  2:22 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-09-01 19:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-09-01 19:57 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to fail|                            |4.3.0
      Known to work|                            |4.0.2
   Last reconfirmed|0000-00-00 00:00:00         |2007-09-01 19:57:15
               date|                            |


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


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

* [Bug c++/33207] [4.3 regression] ICE redeclaring namespace as struct
  2007-08-27 21:30 [Bug c++/33207] New: [4.3 regression] ICE redeclaring namespace as struct reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-09-01 19:57 ` pinskia at gcc dot gnu dot org
@ 2007-09-05  2:22 ` mmitchel at gcc dot gnu dot org
  2007-09-05 18:32 ` simartin at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-09-05  2:22 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


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


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

* [Bug c++/33207] [4.3 regression] ICE redeclaring namespace as struct
  2007-08-27 21:30 [Bug c++/33207] New: [4.3 regression] ICE redeclaring namespace as struct reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-09-05  2:22 ` mmitchel at gcc dot gnu dot org
@ 2007-09-05 18:32 ` simartin at gcc dot gnu dot org
  2007-09-08  5:55 ` patchapp at dberlin dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: simartin at gcc dot gnu dot org @ 2007-09-05 18:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from simartin at gcc dot gnu dot org  2007-09-05 18:32 -------
I'm testing a patch for this one.


-- 

simartin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simartin at gcc dot gnu dot
                   |                            |org
         AssignedTo|unassigned at gcc dot gnu   |simartin at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-09-01 19:57:15         |2007-09-05 18:32:00
               date|                            |


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


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

* [Bug c++/33207] [4.3 regression] ICE redeclaring namespace as struct
  2007-08-27 21:30 [Bug c++/33207] New: [4.3 regression] ICE redeclaring namespace as struct reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-09-05 18:32 ` simartin at gcc dot gnu dot org
@ 2007-09-08  5:55 ` patchapp at dberlin dot org
  2007-09-25 18:34 ` simartin at gcc dot gnu dot org
  2007-09-25 18:42 ` simartin at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: patchapp at dberlin dot org @ 2007-09-08  5:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from patchapp at dberlin dot org  2007-09-08 05:55 -------
Subject: Bug number PR c++/33207

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-09/msg00667.html


-- 


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


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

* [Bug c++/33207] [4.3 regression] ICE redeclaring namespace as struct
  2007-08-27 21:30 [Bug c++/33207] New: [4.3 regression] ICE redeclaring namespace as struct reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-09-08  5:55 ` patchapp at dberlin dot org
@ 2007-09-25 18:34 ` simartin at gcc dot gnu dot org
  2007-09-25 18:42 ` simartin at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: simartin at gcc dot gnu dot org @ 2007-09-25 18:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from simartin at gcc dot gnu dot org  2007-09-25 18:34 -------
Subject: Bug 33207

Author: simartin
Date: Tue Sep 25 18:34:05 2007
New Revision: 128769

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128769
Log:
gcc/cp/

2007-09-25  Simon Martin  <simartin@users.sourceforge.net>

        PR c++/33207
        * name-lookup.c (pushtag): Do not create an implicit typedef before
        the associated type declaration is known to be valid.

gcc/testsuite/

2007-09-25  Simon Martin  <simartin@users.sourceforge.net>

        PR c++/33207
        * g++.dg/parse/crash38.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/parse/crash38.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/33207] [4.3 regression] ICE redeclaring namespace as struct
  2007-08-27 21:30 [Bug c++/33207] New: [4.3 regression] ICE redeclaring namespace as struct reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2007-09-25 18:34 ` simartin at gcc dot gnu dot org
@ 2007-09-25 18:42 ` simartin at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: simartin at gcc dot gnu dot org @ 2007-09-25 18:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from simartin at gcc dot gnu dot org  2007-09-25 18:41 -------
Fixed on the mainline.


-- 

simartin at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-09-25 18:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-27 21:30 [Bug c++/33207] New: [4.3 regression] ICE redeclaring namespace as struct reichelt at gcc dot gnu dot org
2007-08-27 21:30 ` [Bug c++/33207] " reichelt at gcc dot gnu dot org
2007-08-27 21:31 ` pinskia at gcc dot gnu dot org
2007-09-01 19:57 ` pinskia at gcc dot gnu dot org
2007-09-05  2:22 ` mmitchel at gcc dot gnu dot org
2007-09-05 18:32 ` simartin at gcc dot gnu dot org
2007-09-08  5:55 ` patchapp at dberlin dot org
2007-09-25 18:34 ` simartin at gcc dot gnu dot org
2007-09-25 18:42 ` simartin 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).