public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34600]  New: [4.2/4.3 regression] ICE with invalid use of extern
@ 2007-12-28  2:04 reichelt at gcc dot gnu dot org
  2007-12-28  2:07 ` [Bug c++/34600] " reichelt at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-12-28  2:04 UTC (permalink / raw)
  To: gcc-bugs

The following invalid testcase triggers an ICE since GCC 4.2.0:

====================
namespace N
{
  void foo()
  {
    extern int i = 0;
  }
}
====================

bug6.cc: In function 'void N::foo()':
bug6.cc:5: error: 'i' has both 'extern' and initializer
bug6.cc:5: internal compiler error: in start_decl, at cp/decl.c:4128
Please submit a full bug report, [etc.]


-- 
           Summary: [4.2/4.3 regression] ICE with invalid use of extern
           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=34600


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

* [Bug c++/34600] [4.2/4.3 regression] ICE with invalid use of extern
  2007-12-28  2:04 [Bug c++/34600] New: [4.2/4.3 regression] ICE with invalid use of extern reichelt at gcc dot gnu dot org
@ 2007-12-28  2:07 ` reichelt at gcc dot gnu dot org
  2007-12-28  2:08 ` reichelt at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-12-28  2:07 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=34600


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

* [Bug c++/34600] [4.2/4.3 regression] ICE with invalid use of extern
  2007-12-28  2:04 [Bug c++/34600] New: [4.2/4.3 regression] ICE with invalid use of extern reichelt at gcc dot gnu dot org
  2007-12-28  2:07 ` [Bug c++/34600] " reichelt at gcc dot gnu dot org
@ 2007-12-28  2:08 ` reichelt at gcc dot gnu dot org
  2008-02-01 17:02 ` jsm28 at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-12-28  2:08 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/34600] [4.2/4.3 regression] ICE with invalid use of extern
  2007-12-28  2:04 [Bug c++/34600] New: [4.2/4.3 regression] ICE with invalid use of extern reichelt at gcc dot gnu dot org
  2007-12-28  2:07 ` [Bug c++/34600] " reichelt at gcc dot gnu dot org
  2007-12-28  2:08 ` reichelt at gcc dot gnu dot org
@ 2008-02-01 17:02 ` jsm28 at gcc dot gnu dot org
  2008-05-19 20:32 ` [Bug c++/34600] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-02-01 17:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jsm28 at gcc dot gnu dot org  2008-02-01 16:55 -------
4.2.3 is being released now, changing milestones of open bugs to 4.2.4.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.2.3                       |4.2.4


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


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

* [Bug c++/34600] [4.2/4.3/4.4 regression] ICE with invalid use of extern
  2007-12-28  2:04 [Bug c++/34600] New: [4.2/4.3 regression] ICE with invalid use of extern reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-02-01 17:02 ` jsm28 at gcc dot gnu dot org
@ 2008-05-19 20:32 ` jsm28 at gcc dot gnu dot org
  2008-08-14 12:26 ` paolo dot carlini at oracle dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-05-19 20:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jsm28 at gcc dot gnu dot org  2008-05-19 20:24 -------
4.2.4 is being released, changing milestones to 4.2.5.


-- 

jsm28 at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/34600] [4.2/4.3/4.4 regression] ICE with invalid use of extern
  2007-12-28  2:04 [Bug c++/34600] New: [4.2/4.3 regression] ICE with invalid use of extern reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-05-19 20:32 ` [Bug c++/34600] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
@ 2008-08-14 12:26 ` paolo dot carlini at oracle dot com
  2008-08-14 15:13 ` paolo at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-08-14 12:26 UTC (permalink / raw)
  To: gcc-bugs



-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |paolo dot carlini at oracle
                   |dot org                     |dot com
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-08-14 12:24:47
               date|                            |


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


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

* [Bug c++/34600] [4.2/4.3/4.4 regression] ICE with invalid use of extern
  2007-12-28  2:04 [Bug c++/34600] New: [4.2/4.3 regression] ICE with invalid use of extern reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-08-14 12:26 ` paolo dot carlini at oracle dot com
@ 2008-08-14 15:13 ` paolo at gcc dot gnu dot org
  2008-08-14 15:14 ` [Bug c++/34600] [4.2/4.3 " paolo dot carlini at oracle dot com
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: paolo at gcc dot gnu dot org @ 2008-08-14 15:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from paolo at gcc dot gnu dot org  2008-08-14 15:12 -------
Subject: Bug 34600

Author: paolo
Date: Thu Aug 14 15:11:01 2008
New Revision: 139099

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139099
Log:
/cp
2008-08-14  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/34600
        * decl.c (grokdeclarator): In case of extern and initializer, return
        error_mark_node after the error.

/testsuite
2008-08-14  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/34600
        * g++.dg/parse/crash43.C: New.

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


-- 


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


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

* [Bug c++/34600] [4.2/4.3 regression] ICE with invalid use of extern
  2007-12-28  2:04 [Bug c++/34600] New: [4.2/4.3 regression] ICE with invalid use of extern reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-08-14 15:13 ` paolo at gcc dot gnu dot org
@ 2008-08-14 15:14 ` paolo dot carlini at oracle dot com
  2009-03-31 20:16 ` [Bug c++/34600] [4.3 " jsm28 at gcc dot gnu dot org
  2009-04-22 15:24 ` rguenth at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-08-14 15:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from paolo dot carlini at oracle dot com  2008-08-14 15:12 -------
Fixed for 4.4.0.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|paolo dot carlini at oracle |unassigned at gcc dot gnu
                   |dot com                     |dot org
             Status|ASSIGNED                    |NEW
            Summary|[4.2/4.3/4.4 regression] ICE|[4.2/4.3 regression] ICE
                   |with invalid use of extern  |with invalid use of extern


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


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

* [Bug c++/34600] [4.3 regression] ICE with invalid use of extern
  2007-12-28  2:04 [Bug c++/34600] New: [4.2/4.3 regression] ICE with invalid use of extern reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2008-08-14 15:14 ` [Bug c++/34600] [4.2/4.3 " paolo dot carlini at oracle dot com
@ 2009-03-31 20:16 ` jsm28 at gcc dot gnu dot org
  2009-04-22 15:24 ` rguenth at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-31 20:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jsm28 at gcc dot gnu dot org  2009-03-31 20:15 -------
Closing 4.2 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.2/4.3 regression] ICE    |[4.3 regression] ICE with
                   |with invalid use of extern  |invalid use of extern
   Target Milestone|4.2.5                       |4.3.4


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


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

* [Bug c++/34600] [4.3 regression] ICE with invalid use of extern
  2007-12-28  2:04 [Bug c++/34600] New: [4.2/4.3 regression] ICE with invalid use of extern reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2009-03-31 20:16 ` [Bug c++/34600] [4.3 " jsm28 at gcc dot gnu dot org
@ 2009-04-22 15:24 ` rguenth at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-22 15:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2009-04-22 15:23 -------
WONTFIX for 4.3.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to fail|                            |4.3.3
      Known to work|                            |4.4.0
         Resolution|                            |FIXED
   Target Milestone|4.3.4                       |4.4.0


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


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

end of thread, other threads:[~2009-04-22 15:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-28  2:04 [Bug c++/34600] New: [4.2/4.3 regression] ICE with invalid use of extern reichelt at gcc dot gnu dot org
2007-12-28  2:07 ` [Bug c++/34600] " reichelt at gcc dot gnu dot org
2007-12-28  2:08 ` reichelt at gcc dot gnu dot org
2008-02-01 17:02 ` jsm28 at gcc dot gnu dot org
2008-05-19 20:32 ` [Bug c++/34600] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2008-08-14 12:26 ` paolo dot carlini at oracle dot com
2008-08-14 15:13 ` paolo at gcc dot gnu dot org
2008-08-14 15:14 ` [Bug c++/34600] [4.2/4.3 " paolo dot carlini at oracle dot com
2009-03-31 20:16 ` [Bug c++/34600] [4.3 " jsm28 at gcc dot gnu dot org
2009-04-22 15:24 ` rguenth 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).