public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/24582]  New: [4.1 regression] ICE in decl_jump_unsafe
@ 2005-10-29 22:09 steven at gcc dot gnu dot org
  2005-10-29 22:10 ` [Bug c++/24582] " steven at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-10-29 22:09 UTC (permalink / raw)
  To: gcc-bugs

Compile the to-be-attached test case, and you get an ICE in the front end after
errors:

jigdo-file.cc: At global scope:
jigdo-file.cc:491: error: 'class JigdoFileCmd::Command' is not a class or
namespace
jigdo-file.cc:491: error: ISO C++ forbids declaration of 'cmdOptions' with no
type
 int<unnamed>::cmdOptions(int, char**)
jigdo-file.cc:493: error: 'binaryName' was not declared in this scope
jigdo-file.cc:496: error: 'optReporter' was not declared in this scope
jigdo-file.cc:546: error: 'optZipQuality' was not declared in this scope
jigdo-file.cc:547: internal compiler error: tree check: expected class 'type',
have 'exceptional' (error_mark) in decl_jump_unsafe, at cp/decl.c:2153


-- 
           Summary: [4.1 regression] ICE in decl_jump_unsafe
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: steven at gcc dot gnu dot org


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


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

* [Bug c++/24582] [4.1 regression] ICE in decl_jump_unsafe
  2005-10-29 22:09 [Bug c++/24582] New: [4.1 regression] ICE in decl_jump_unsafe steven at gcc dot gnu dot org
@ 2005-10-29 22:10 ` steven at gcc dot gnu dot org
  2005-10-29 22:23 ` pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-10-29 22:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from steven at gcc dot gnu dot org  2005-10-29 22:10 -------
Created an attachment (id=10080)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10080&action=view)
testcase


-- 


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


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

* [Bug c++/24582] [4.1 regression] ICE in decl_jump_unsafe
  2005-10-29 22:09 [Bug c++/24582] New: [4.1 regression] ICE in decl_jump_unsafe steven at gcc dot gnu dot org
  2005-10-29 22:10 ` [Bug c++/24582] " steven at gcc dot gnu dot org
@ 2005-10-29 22:23 ` pinskia at gcc dot gnu dot org
  2005-10-30 17:30 ` pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-29 22:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2005-10-29 22:23 -------
This is my fault, will fix but tomorrow.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org


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


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

* [Bug c++/24582] [4.1 regression] ICE in decl_jump_unsafe
  2005-10-29 22:09 [Bug c++/24582] New: [4.1 regression] ICE in decl_jump_unsafe steven at gcc dot gnu dot org
  2005-10-29 22:10 ` [Bug c++/24582] " steven at gcc dot gnu dot org
  2005-10-29 22:23 ` pinskia at gcc dot gnu dot org
@ 2005-10-30 17:30 ` pinskia at gcc dot gnu dot org
  2005-10-30 17:37 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-30 17:30 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery
   Target Milestone|---                         |4.1.0


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


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

* [Bug c++/24582] [4.1 regression] ICE in decl_jump_unsafe
  2005-10-29 22:09 [Bug c++/24582] New: [4.1 regression] ICE in decl_jump_unsafe steven at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-10-30 17:30 ` pinskia at gcc dot gnu dot org
@ 2005-10-30 17:37 ` pinskia at gcc dot gnu dot org
  2005-10-30 17:42 ` [Bug c++/24582] [4.0/4.1 " pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-30 17:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2005-10-30 17:37 -------
Reduced testcase:
   JigdoFileCmd::Command ::JigdoFileCmd::cmdOptions(int argc, char* argv[]) {
        switch (c) {
     case LONGOPT_BZIP2: optBzip2 = true;



---
This is not mine after all.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-10-30 17:37:08
               date|                            |


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


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

* [Bug c++/24582] [4.0/4.1 regression] ICE in decl_jump_unsafe
  2005-10-29 22:09 [Bug c++/24582] New: [4.1 regression] ICE in decl_jump_unsafe steven at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-10-30 17:37 ` pinskia at gcc dot gnu dot org
@ 2005-10-30 17:42 ` pinskia at gcc dot gnu dot org
  2005-10-31  6:44 ` mmitchel at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-30 17:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2005-10-30 17:42 -------
(In reply to comment #3)
> This is not mine after all.
As this was introduced before my patch which I had thought might had caused it.

This was caused by:
2005-10-13  Mark Mitchell  <mark@codesourcery.com>

        PR c++/20721
        * cp-tree.h (DECL_NONTRIVIALLY_INITIALIZED_P): New macro.
        * decl.c (duplicate_decls): Merge it into new declarations.
        (decl_jump_unsafe): Use it, rather than DECL_INITIAL.
        (cp_finish_decl): Set it, when appropriate.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org
            Summary|[4.1 regression] ICE in     |[4.0/4.1 regression] ICE in
                   |decl_jump_unsafe            |decl_jump_unsafe
   Target Milestone|4.1.0                       |4.0.3


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


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

* [Bug c++/24582] [4.0/4.1 regression] ICE in decl_jump_unsafe
  2005-10-29 22:09 [Bug c++/24582] New: [4.1 regression] ICE in decl_jump_unsafe steven at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-10-30 17:42 ` [Bug c++/24582] [4.0/4.1 " pinskia at gcc dot gnu dot org
@ 2005-10-31  6:44 ` mmitchel at gcc dot gnu dot org
  2005-10-31 19:22 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-10-31  6:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from mmitchel at gcc dot gnu dot org  2005-10-31 06:44 -------
Leave as P2.


-- 


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


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

* [Bug c++/24582] [4.0/4.1 regression] ICE in decl_jump_unsafe
  2005-10-29 22:09 [Bug c++/24582] New: [4.1 regression] ICE in decl_jump_unsafe steven at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2005-10-31  6:44 ` mmitchel at gcc dot gnu dot org
@ 2005-10-31 19:22 ` pinskia at gcc dot gnu dot org
  2005-11-01  4:45 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-31 19:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2005-10-31 19:22 -------
Here is a better testcase with only one error:
int f(int c)
{
  switch (c)
  {
    case d:  /* { dg-error "'d' was not declared" } */
     int optBzip2 = true;
  }
}

--------
I am going to fix this one.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug c++/24582] [4.0/4.1 regression] ICE in decl_jump_unsafe
  2005-10-29 22:09 [Bug c++/24582] New: [4.1 regression] ICE in decl_jump_unsafe steven at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2005-10-31 19:22 ` pinskia at gcc dot gnu dot org
@ 2005-11-01  4:45 ` pinskia at gcc dot gnu dot org
  2005-11-03  7:09 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-01  4:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2005-11-01 04:45 -------
Patch posted:
http://gcc.gnu.org/ml/gcc-patches/2005-11/msg00006.html


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2005-
                   |                            |11/msg00006.html
           Keywords|                            |patch


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


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

* [Bug c++/24582] [4.0/4.1 regression] ICE in decl_jump_unsafe
  2005-10-29 22:09 [Bug c++/24582] New: [4.1 regression] ICE in decl_jump_unsafe steven at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2005-11-01  4:45 ` pinskia at gcc dot gnu dot org
@ 2005-11-03  7:09 ` mmitchel at gcc dot gnu dot org
  2005-11-03 15:06 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-11-03  7:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from mmitchel at gcc dot gnu dot org  2005-11-03 07:09 -------
This patch is OK.


-- 


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


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

* [Bug c++/24582] [4.0/4.1 regression] ICE in decl_jump_unsafe
  2005-10-29 22:09 [Bug c++/24582] New: [4.1 regression] ICE in decl_jump_unsafe steven at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2005-11-03  7:09 ` mmitchel at gcc dot gnu dot org
@ 2005-11-03 15:06 ` pinskia at gcc dot gnu dot org
  2005-11-03 15:13 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-03 15:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from pinskia at gcc dot gnu dot org  2005-11-03 15:06 -------
Subject: Bug 24582

Author: pinskia
Date: Thu Nov  3 15:06:42 2005
New Revision: 106434

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106434
Log:
2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/24582
        * g++.dg/init/switch1.C: New test.

2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/24582
        * decl.c (declare_local_label): Return 0 for variables
        with error_mark_node as their types.



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


-- 


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


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

* [Bug c++/24582] [4.0/4.1 regression] ICE in decl_jump_unsafe
  2005-10-29 22:09 [Bug c++/24582] New: [4.1 regression] ICE in decl_jump_unsafe steven at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2005-11-03 15:13 ` pinskia at gcc dot gnu dot org
@ 2005-11-03 15:13 ` pinskia at gcc dot gnu dot org
  2006-01-21 23:42 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-03 15:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from pinskia at gcc dot gnu dot org  2005-11-03 15:13 -------
Subject: Bug 24582

Author: pinskia
Date: Thu Nov  3 15:13:01 2005
New Revision: 106435

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106435
Log:
2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/24582
        * g++.dg/init/switch1.C: New test.

2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/24582
        * decl.c (declare_local_label): Return 0 for variables
        with error_mark_node as their types.


Added:
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/init/switch1.C
      - copied unchanged from r106434,
trunk/gcc/testsuite/g++.dg/init/switch1.C
Modified:
    branches/gcc-4_0-branch/gcc/cp/ChangeLog
    branches/gcc-4_0-branch/gcc/cp/decl.c
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/24582] [4.0/4.1 regression] ICE in decl_jump_unsafe
  2005-10-29 22:09 [Bug c++/24582] New: [4.1 regression] ICE in decl_jump_unsafe steven at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2005-11-03 15:06 ` pinskia at gcc dot gnu dot org
@ 2005-11-03 15:13 ` pinskia at gcc dot gnu dot org
  2005-11-03 15:13 ` pinskia at gcc dot gnu dot org
  2006-01-21 23:42 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-03 15:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from pinskia at gcc dot gnu dot org  2005-11-03 15:13 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/24582] [4.0/4.1 regression] ICE in decl_jump_unsafe
  2005-10-29 22:09 [Bug c++/24582] New: [4.1 regression] ICE in decl_jump_unsafe steven at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2005-11-03 15:13 ` pinskia at gcc dot gnu dot org
@ 2006-01-21 23:42 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-21 23:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from pinskia at gcc dot gnu dot org  2006-01-21 23:42 -------
*** Bug 25904 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wwieser at gmx dot de


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


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

end of thread, other threads:[~2006-01-21 23:42 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-29 22:09 [Bug c++/24582] New: [4.1 regression] ICE in decl_jump_unsafe steven at gcc dot gnu dot org
2005-10-29 22:10 ` [Bug c++/24582] " steven at gcc dot gnu dot org
2005-10-29 22:23 ` pinskia at gcc dot gnu dot org
2005-10-30 17:30 ` pinskia at gcc dot gnu dot org
2005-10-30 17:37 ` pinskia at gcc dot gnu dot org
2005-10-30 17:42 ` [Bug c++/24582] [4.0/4.1 " pinskia at gcc dot gnu dot org
2005-10-31  6:44 ` mmitchel at gcc dot gnu dot org
2005-10-31 19:22 ` pinskia at gcc dot gnu dot org
2005-11-01  4:45 ` pinskia at gcc dot gnu dot org
2005-11-03  7:09 ` mmitchel at gcc dot gnu dot org
2005-11-03 15:06 ` pinskia at gcc dot gnu dot org
2005-11-03 15:13 ` pinskia at gcc dot gnu dot org
2005-11-03 15:13 ` pinskia at gcc dot gnu dot org
2006-01-21 23:42 ` 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).