public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37555] [4.1/4.2/4.3/4.4 regression] ICE with invalid typedef
  2008-09-17  6:33 [Bug c++/37555] New: [4.1/4.2/4.3/4.4 regression] ICE with invalid typedef reichelt at gcc dot gnu dot org
@ 2008-09-17  6:33 ` reichelt at gcc dot gnu dot org
  2008-09-17 14:29 ` [Bug c++/37555] [4.2/4.3/4.4 " rguenth 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 @ 2008-09-17  6:33 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.2.5


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


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

* [Bug c++/37555]  New: [4.1/4.2/4.3/4.4 regression] ICE with invalid typedef
@ 2008-09-17  6:33 reichelt at gcc dot gnu dot org
  2008-09-17  6:33 ` [Bug c++/37555] " 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 @ 2008-09-17  6:33 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE since GCC 3.4.0:

========================
struct A {};

typedef void (A::T)();

void foo()
{
  T t;
  t;
}
========================

bug.cc:3: error: typedef name may not be a nested-name-specifier
bug.cc: In function 'void foo()':
bug.cc:8: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


-- 
           Summary: [4.1/4.2/4.3/4.4 regression] ICE with invalid typedef
           Product: gcc
           Version: 4.4.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=37555


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

* [Bug c++/37555] [4.2/4.3/4.4 regression] ICE with invalid typedef
  2008-09-17  6:33 [Bug c++/37555] New: [4.1/4.2/4.3/4.4 regression] ICE with invalid typedef reichelt at gcc dot gnu dot org
  2008-09-17  6:33 ` [Bug c++/37555] " reichelt at gcc dot gnu dot org
@ 2008-09-17 14:29 ` rguenth at gcc dot gnu dot org
  2008-09-18 19:44 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-09-17 14:29 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P5


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


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

* [Bug c++/37555] [4.2/4.3/4.4 regression] ICE with invalid typedef
  2008-09-17  6:33 [Bug c++/37555] New: [4.1/4.2/4.3/4.4 regression] ICE with invalid typedef reichelt at gcc dot gnu dot org
  2008-09-17  6:33 ` [Bug c++/37555] " reichelt at gcc dot gnu dot org
  2008-09-17 14:29 ` [Bug c++/37555] [4.2/4.3/4.4 " rguenth at gcc dot gnu dot org
@ 2008-09-18 19:44 ` pinskia at gcc dot gnu dot org
  2008-09-27 11:00 ` simartin 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 @ 2008-09-18 19:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-09-18 19:42 -------
Confirmed.
#0  maybe_dummy_object (type=???, binfop=???) at
/Users/apinski/src/local/gcc/gcc/cp/tree.c:2067


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to fail|                            |4.4.0 4.0.0
   Last reconfirmed|0000-00-00 00:00:00         |2008-09-18 19:42:41
               date|                            |


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


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

* [Bug c++/37555] [4.2/4.3/4.4 regression] ICE with invalid typedef
  2008-09-17  6:33 [Bug c++/37555] New: [4.1/4.2/4.3/4.4 regression] ICE with invalid typedef reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-09-18 19:44 ` pinskia at gcc dot gnu dot org
@ 2008-09-27 11:00 ` simartin at gcc dot gnu dot org
  2008-09-30 19:28 ` simartin at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: simartin at gcc dot gnu dot org @ 2008-09-27 11:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from simartin at gcc dot gnu dot org  2008-09-27 10:58 -------
Patch posted here:
  http://gcc.gnu.org/ml/gcc-patches/2008-09/msg01880.html


-- 

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|2008-09-18 19:42:41         |2008-09-27 10:58:49
               date|                            |


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


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

* [Bug c++/37555] [4.2/4.3/4.4 regression] ICE with invalid typedef
  2008-09-17  6:33 [Bug c++/37555] New: [4.1/4.2/4.3/4.4 regression] ICE with invalid typedef reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-09-27 11:00 ` simartin at gcc dot gnu dot org
@ 2008-09-30 19:28 ` simartin at gcc dot gnu dot org
  2008-09-30 19:58 ` simartin at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: simartin at gcc dot gnu dot org @ 2008-09-30 19:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from simartin at gcc dot gnu dot org  2008-09-30 19:27 -------
Subject: Bug 37555

Author: simartin
Date: Tue Sep 30 19:25:35 2008
New Revision: 140794

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

2008-09-30  Simon Martin  <simartin@users.sourceforge.net>

            PR c++/37555
            PR c++/37556
            * decl.c (grokdeclarator): Set the type for typedefs to a
            nested-name-specifier to error_mark_node.

gcc/testsuite/

2008-09-30  Simon Martin  <simartin@users.sourceforge.net>

            PR c++/37555
            * g++.dg/parse/error32.C: New test.

            PR c++/37556
            * g++.dg/parse/error33.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/parse/error32.C
    trunk/gcc/testsuite/g++.dg/parse/error33.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/37555] [4.2/4.3/4.4 regression] ICE with invalid typedef
  2008-09-17  6:33 [Bug c++/37555] New: [4.1/4.2/4.3/4.4 regression] ICE with invalid typedef reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-09-30 19:28 ` simartin at gcc dot gnu dot org
@ 2008-09-30 19:58 ` simartin at gcc dot gnu dot org
  2008-09-30 20:02 ` [Bug c++/37555] [4.2 " simartin at gcc dot gnu dot org
  2009-03-31 15:49 ` jsm28 at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: simartin at gcc dot gnu dot org @ 2008-09-30 19:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from simartin at gcc dot gnu dot org  2008-09-30 19:57 -------
Subject: Bug 37555

Author: simartin
Date: Tue Sep 30 19:56:13 2008
New Revision: 140796

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

2008-09-30  Simon Martin  <simartin@users.sourceforge.net>

            PR c++/37555
            * decl.c (grokdeclarator): Set the type for typedefs to a
            nested-name-specifier to error_mark_node.

gcc/testsuite/

2008-09-30  Simon Martin  <simartin@users.sourceforge.net>

            PR c++/37555
            * g++.dg/parse/error32.C: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/parse/error32.C
Modified:
    branches/gcc-4_3-branch/gcc/cp/ChangeLog
    branches/gcc-4_3-branch/gcc/cp/decl.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/37555] [4.2 regression] ICE with invalid typedef
  2008-09-17  6:33 [Bug c++/37555] New: [4.1/4.2/4.3/4.4 regression] ICE with invalid typedef reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-09-30 19:58 ` simartin at gcc dot gnu dot org
@ 2008-09-30 20:02 ` simartin at gcc dot gnu dot org
  2009-03-31 15:49 ` jsm28 at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: simartin at gcc dot gnu dot org @ 2008-09-30 20:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from simartin at gcc dot gnu dot org  2008-09-30 20:01 -------
Fixed in 4.3.3 and 4.4.0.


-- 

simartin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|4.4.0 4.0.0                 |4.0.0
      Known to work|                            |4.3.3 4.4.0
            Summary|[4.2/4.3/4.4 regression] ICE|[4.2 regression] ICE with
                   |with invalid typedef        |invalid typedef


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


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

* [Bug c++/37555] [4.2 regression] ICE with invalid typedef
  2008-09-17  6:33 [Bug c++/37555] New: [4.1/4.2/4.3/4.4 regression] ICE with invalid typedef reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2008-09-30 20:02 ` [Bug c++/37555] [4.2 " simartin at gcc dot gnu dot org
@ 2009-03-31 15:49 ` jsm28 at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-31 15:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jsm28 at gcc dot gnu dot org  2009-03-31 15:48 -------
Closing 4.2 branch, fixed for 4.3.3 and 4.4.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to fail|4.0.0                       |4.0.0 4.2.5
         Resolution|                            |FIXED
   Target Milestone|4.2.5                       |4.3.3


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


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

end of thread, other threads:[~2009-03-31 15:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-17  6:33 [Bug c++/37555] New: [4.1/4.2/4.3/4.4 regression] ICE with invalid typedef reichelt at gcc dot gnu dot org
2008-09-17  6:33 ` [Bug c++/37555] " reichelt at gcc dot gnu dot org
2008-09-17 14:29 ` [Bug c++/37555] [4.2/4.3/4.4 " rguenth at gcc dot gnu dot org
2008-09-18 19:44 ` pinskia at gcc dot gnu dot org
2008-09-27 11:00 ` simartin at gcc dot gnu dot org
2008-09-30 19:28 ` simartin at gcc dot gnu dot org
2008-09-30 19:58 ` simartin at gcc dot gnu dot org
2008-09-30 20:02 ` [Bug c++/37555] [4.2 " simartin at gcc dot gnu dot org
2009-03-31 15:49 ` jsm28 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).