public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28878]  New: [4.0/4.1/4.2 regression] ICE using "[" instead of "{"
@ 2006-08-28 23:38 reichelt at gcc dot gnu dot org
  2006-08-28 23:39 ` [Bug c++/28878] " 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 @ 2006-08-28 23:38 UTC (permalink / raw)
  To: gcc-bugs

The following invlaid code snippet triggers a segfault since GCC 3.4.0:

==========================
template<int> void foo()
[
  throw;
}
==========================

bug.cc:3: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


-- 
           Summary: [4.0/4.1/4.2 regression] ICE using "[" instead of "{"
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, 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=28878


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

* [Bug c++/28878] [4.0/4.1/4.2 regression] ICE using "[" instead of "{"
  2006-08-28 23:38 [Bug c++/28878] New: [4.0/4.1/4.2 regression] ICE using "[" instead of "{" reichelt at gcc dot gnu dot org
@ 2006-08-28 23:39 ` reichelt at gcc dot gnu dot org
  2006-08-28 23:46 ` 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 @ 2006-08-28 23:39 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.4


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


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

* [Bug c++/28878] [4.0/4.1/4.2 regression] ICE using "[" instead of "{"
  2006-08-28 23:38 [Bug c++/28878] New: [4.0/4.1/4.2 regression] ICE using "[" instead of "{" reichelt at gcc dot gnu dot org
  2006-08-28 23:39 ` [Bug c++/28878] " reichelt at gcc dot gnu dot org
@ 2006-08-28 23:46 ` pinskia at gcc dot gnu dot org
  2006-09-01 10:59 ` jakub 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 @ 2006-08-28 23:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-08-28 23:46 -------
#0  0x081141ec in build_throw (exp=<value optimized out>)
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/except.c:602
#1  0x080e641d in cp_parser_assignment_expression (parser=0xb7ccfe6c, cast_p=0
'\0')
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:14101
#2  0x080e683f in cp_parser_constant_expression (parser=0xb7ccfe6c,
allow_non_constant_p=1 '\001',
    non_constant_p=0xbfef5f1b "") at
/home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:5892
#3  0x080ecc9e in cp_parser_declarator (parser=0xb7ccfe6c,
dcl_kind=CP_PARSER_DECLARATOR_NAMED,
    ctor_dtor_or_conv_p=0xbfef5f74, parenthesized_p=0x9540b08 "", member_p=0
'\0')
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:11302


-- 

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         |2006-08-28 23:46:22
               date|                            |


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


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

* [Bug c++/28878] [4.0/4.1/4.2 regression] ICE using "[" instead of "{"
  2006-08-28 23:38 [Bug c++/28878] New: [4.0/4.1/4.2 regression] ICE using "[" instead of "{" reichelt at gcc dot gnu dot org
  2006-08-28 23:39 ` [Bug c++/28878] " reichelt at gcc dot gnu dot org
  2006-08-28 23:46 ` pinskia at gcc dot gnu dot org
@ 2006-09-01 10:59 ` jakub at gcc dot gnu dot org
  2006-09-01 15:44 ` patchapp at dberlin dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-09-01 10:59 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-08-28 23:46:22         |2006-09-01 10:59:32
               date|                            |


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


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

* [Bug c++/28878] [4.0/4.1/4.2 regression] ICE using "[" instead of "{"
  2006-08-28 23:38 [Bug c++/28878] New: [4.0/4.1/4.2 regression] ICE using "[" instead of "{" reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-09-01 10:59 ` jakub at gcc dot gnu dot org
@ 2006-09-01 15:44 ` patchapp at dberlin dot org
  2006-09-01 22:16 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: patchapp at dberlin dot org @ 2006-09-01 15:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from patchapp at dberlin dot org  2006-09-01 15:44 -------
Subject: Bug number PR c++/28878

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/2006-09/msg00014.html


-- 


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


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

* [Bug c++/28878] [4.0/4.1/4.2 regression] ICE using "[" instead of "{"
  2006-08-28 23:38 [Bug c++/28878] New: [4.0/4.1/4.2 regression] ICE using "[" instead of "{" reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-09-01 15:44 ` patchapp at dberlin dot org
@ 2006-09-01 22:16 ` mmitchel at gcc dot gnu dot org
  2006-09-02  6:54 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-09-01 22:16 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug c++/28878] [4.0/4.1/4.2 regression] ICE using "[" instead of "{"
  2006-08-28 23:38 [Bug c++/28878] New: [4.0/4.1/4.2 regression] ICE using "[" instead of "{" reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-09-01 22:16 ` mmitchel at gcc dot gnu dot org
@ 2006-09-02  6:54 ` jakub at gcc dot gnu dot org
  2006-09-02  6:58 ` jakub at gcc dot gnu dot org
  2007-02-03 19:38 ` [Bug c++/28878] [4.0 " gdr at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-09-02  6:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2006-09-02 06:54 -------
Subject: Bug 28878

Author: jakub
Date: Sat Sep  2 06:54:04 2006
New Revision: 116655

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116655
Log:
        PR c++/28878
        * except.c (build_throw): Only set current_function_returns_abnormally
        if cfun is not NULL.

        * g++.dg/parse/crash33.C: New test.

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


-- 


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


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

* [Bug c++/28878] [4.0/4.1/4.2 regression] ICE using "[" instead of "{"
  2006-08-28 23:38 [Bug c++/28878] New: [4.0/4.1/4.2 regression] ICE using "[" instead of "{" reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-09-02  6:54 ` jakub at gcc dot gnu dot org
@ 2006-09-02  6:58 ` jakub at gcc dot gnu dot org
  2007-02-03 19:38 ` [Bug c++/28878] [4.0 " gdr at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-09-02  6:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2006-09-02 06:58 -------
Subject: Bug 28878

Author: jakub
Date: Sat Sep  2 06:58:19 2006
New Revision: 116658

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116658
Log:
        PR c++/28878
        * except.c (build_throw): Only set current_function_returns_abnormally
        if cfun is not NULL.

        * g++.dg/parse/crash33.C: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/crash33.C
Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/except.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/28878] [4.0 regression] ICE using "[" instead of "{"
  2006-08-28 23:38 [Bug c++/28878] New: [4.0/4.1/4.2 regression] ICE using "[" instead of "{" reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-09-02  6:58 ` jakub at gcc dot gnu dot org
@ 2007-02-03 19:38 ` gdr at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 19:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from gdr at gcc dot gnu dot org  2007-02-03 19:38 -------
Fixed in GCC0-4.1.2.


-- 

gdr at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.0.4                       |4.1.2


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


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

end of thread, other threads:[~2007-02-03 19:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-28 23:38 [Bug c++/28878] New: [4.0/4.1/4.2 regression] ICE using "[" instead of "{" reichelt at gcc dot gnu dot org
2006-08-28 23:39 ` [Bug c++/28878] " reichelt at gcc dot gnu dot org
2006-08-28 23:46 ` pinskia at gcc dot gnu dot org
2006-09-01 10:59 ` jakub at gcc dot gnu dot org
2006-09-01 15:44 ` patchapp at dberlin dot org
2006-09-01 22:16 ` mmitchel at gcc dot gnu dot org
2006-09-02  6:54 ` jakub at gcc dot gnu dot org
2006-09-02  6:58 ` jakub at gcc dot gnu dot org
2007-02-03 19:38 ` [Bug c++/28878] [4.0 " gdr 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).