public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/36404] New: [4.2/4.3/4.4 regression] ICE with invalid enum
@ 2008-06-01 10:17 reichelt at gcc dot gnu dot org
2008-06-01 10:18 ` [Bug c++/36404] " reichelt at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-06-01 10:17 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE since GCC 4.2.0:
================================
struct A
{
A(int);
template<int> enum { e };
};
A a(A::e);
================================
bug.cc:4: error: template class without a name
bug.cc:7: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
The compiler also crashed before GCC 3.4.4.
--
Summary: [4.2/4.3/4.4 regression] ICE with invalid enum
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=36404
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/36404] [4.2/4.3/4.4 regression] ICE with invalid enum
2008-06-01 10:17 [Bug c++/36404] New: [4.2/4.3/4.4 regression] ICE with invalid enum reichelt at gcc dot gnu dot org
@ 2008-06-01 10:18 ` reichelt at gcc dot gnu dot org
2008-06-02 11:40 ` paolo dot carlini at oracle dot com
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-06-01 10:18 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=36404
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/36404] [4.2/4.3/4.4 regression] ICE with invalid enum
2008-06-01 10:17 [Bug c++/36404] New: [4.2/4.3/4.4 regression] ICE with invalid enum reichelt at gcc dot gnu dot org
2008-06-01 10:18 ` [Bug c++/36404] " reichelt at gcc dot gnu dot org
@ 2008-06-02 11:40 ` paolo dot carlini at oracle dot com
2008-06-02 21:29 ` [Bug c++/36404] [4.2/4.3 " paolo dot carlini at oracle dot com
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-06-02 11:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from paolo dot carlini at oracle dot com 2008-06-02 11:40 -------
On it.
--
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-06-02 11:40:05
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36404
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/36404] [4.2/4.3/4.4 regression] ICE with invalid enum
2008-06-01 10:17 [Bug c++/36404] New: [4.2/4.3/4.4 regression] ICE with invalid enum reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-06-02 21:29 ` [Bug c++/36404] [4.2/4.3 " paolo dot carlini at oracle dot com
@ 2008-06-02 21:29 ` paolo at gcc dot gnu dot org
2008-06-06 20:29 ` [Bug c++/36404] [4.2/4.3 " rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu dot org @ 2008-06-02 21:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from paolo at gcc dot gnu dot org 2008-06-02 21:28 -------
Subject: Bug 36404
Author: paolo
Date: Mon Jun 2 21:27:35 2008
New Revision: 136295
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136295
Log:
/cp
2008-06-02 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/36404
* pt.c (push_template_decl_real): Consistently return error_mark_node
on error.
/testsuite
2008-06-02 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/36404
* g++.dg/template/crash79.C: New.
* g++.dg/other/pr28114.C: Adjust.
Added:
trunk/gcc/testsuite/g++.dg/template/crash79.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/other/pr28114.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36404
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/36404] [4.2/4.3 regression] ICE with invalid enum
2008-06-01 10:17 [Bug c++/36404] New: [4.2/4.3/4.4 regression] ICE with invalid enum reichelt at gcc dot gnu dot org
2008-06-01 10:18 ` [Bug c++/36404] " reichelt at gcc dot gnu dot org
2008-06-02 11:40 ` paolo dot carlini at oracle dot com
@ 2008-06-02 21:29 ` paolo dot carlini at oracle dot com
2008-06-02 21:29 ` [Bug c++/36404] [4.2/4.3/4.4 " paolo at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-06-02 21:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from paolo dot carlini at oracle dot com 2008-06-02 21:28 -------
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 enum |with invalid enum
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36404
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/36404] [4.2/4.3 regression] ICE with invalid enum
2008-06-01 10:17 [Bug c++/36404] New: [4.2/4.3/4.4 regression] ICE with invalid enum reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2008-06-02 21:29 ` [Bug c++/36404] [4.2/4.3/4.4 " paolo at gcc dot gnu dot org
@ 2008-06-06 20:29 ` rguenth at gcc dot gnu dot org
2009-03-31 20:53 ` [Bug c++/36404] [4.3 " jsm28 at gcc dot gnu dot org
2009-04-22 15:28 ` rguenth at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-06-06 20: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=36404
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/36404] [4.3 regression] ICE with invalid enum
2008-06-01 10:17 [Bug c++/36404] New: [4.2/4.3/4.4 regression] ICE with invalid enum reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2008-06-06 20:29 ` [Bug c++/36404] [4.2/4.3 " rguenth at gcc dot gnu dot org
@ 2009-03-31 20:53 ` jsm28 at gcc dot gnu dot org
2009-04-22 15:28 ` rguenth at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-31 20:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jsm28 at gcc dot gnu dot org 2009-03-31 20:53 -------
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 enum |invalid enum
Target Milestone|4.2.5 |4.3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36404
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/36404] [4.3 regression] ICE with invalid enum
2008-06-01 10:17 [Bug c++/36404] New: [4.2/4.3/4.4 regression] ICE with invalid enum reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2009-03-31 20:53 ` [Bug c++/36404] [4.3 " jsm28 at gcc dot gnu dot org
@ 2009-04-22 15:28 ` rguenth at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-22 15:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2009-04-22 15:27 -------
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=36404
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-04-22 15:28 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-01 10:17 [Bug c++/36404] New: [4.2/4.3/4.4 regression] ICE with invalid enum reichelt at gcc dot gnu dot org
2008-06-01 10:18 ` [Bug c++/36404] " reichelt at gcc dot gnu dot org
2008-06-02 11:40 ` paolo dot carlini at oracle dot com
2008-06-02 21:29 ` [Bug c++/36404] [4.2/4.3 " paolo dot carlini at oracle dot com
2008-06-02 21:29 ` [Bug c++/36404] [4.2/4.3/4.4 " paolo at gcc dot gnu dot org
2008-06-06 20:29 ` [Bug c++/36404] [4.2/4.3 " rguenth at gcc dot gnu dot org
2009-03-31 20:53 ` [Bug c++/36404] [4.3 " jsm28 at gcc dot gnu dot org
2009-04-22 15:28 ` 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).