public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34271] New: [4.3 regression] ICE in invalid initialization of static template member
@ 2007-11-28 21:17 reichelt at gcc dot gnu dot org
2007-11-28 21:18 ` [Bug c++/34271] " reichelt at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-11-28 21:17 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE on mainline:
=====================================================
template<int> struct A
{
static int i;
};
template<int N> int A<N>::i(__decltype( A::i ));
=====================================================
bug.cc:6: internal compiler error: in finish_decltype_type, at
cp/semantics.c:4158
Please submit a full bug report, [etc.]
A slightly modified testcase crashes in a different position:
=====================================================
template<int> struct A
{
static int i;
};
template<int N> int A<N>::i(__decltype( A::i;
=====================================================
bug.cc:6: internal compiler error: in lvalue_p_1, at cp/tree.c:149
Please submit a full bug report, [etc.]
--
Summary: [4.3 regression] ICE in invalid initialization of static
template member
Product: gcc
Version: 4.3.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=34271
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/34271] [4.3 regression] ICE in invalid initialization of static template member
2007-11-28 21:17 [Bug c++/34271] New: [4.3 regression] ICE in invalid initialization of static template member reichelt at gcc dot gnu dot org
@ 2007-11-28 21:18 ` reichelt at gcc dot gnu dot org
2007-12-02 21:13 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-11-28 21:18 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=34271
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/34271] [4.3 regression] ICE in invalid initialization of static template member
2007-11-28 21:17 [Bug c++/34271] New: [4.3 regression] ICE in invalid initialization of static template member reichelt at gcc dot gnu dot org
2007-11-28 21:18 ` [Bug c++/34271] " reichelt at gcc dot gnu dot org
@ 2007-12-02 21:13 ` pinskia at gcc dot gnu dot org
2007-12-05 10:45 ` jakub at gcc dot gnu dot org
2007-12-05 11:15 ` jakub at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-12-02 21:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-12-02 21:13 -------
Confirmed.
--
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 |2007-12-02 21:13:39
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34271
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/34271] [4.3 regression] ICE in invalid initialization of static template member
2007-11-28 21:17 [Bug c++/34271] New: [4.3 regression] ICE in invalid initialization of static template member reichelt at gcc dot gnu dot org
2007-11-28 21:18 ` [Bug c++/34271] " reichelt at gcc dot gnu dot org
2007-12-02 21:13 ` pinskia at gcc dot gnu dot org
@ 2007-12-05 10:45 ` jakub at gcc dot gnu dot org
2007-12-05 11:15 ` jakub at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-12-05 10:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2007-12-05 10:45 -------
Subject: Bug 34271
Author: jakub
Date: Wed Dec 5 10:45:21 2007
New Revision: 130619
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130619
Log:
PR c++/34271
* semantics.c (finish_decltype_type): For SCOPE_REF issue an
error instead of assertion failure.
* parser.c (cp_parser_decltype): If closing paren is not found,
return error_mark_node.
* g++.dg/cpp0x/decltype9.C: New test.
* g++.dg/cpp0x/decltype10.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/decltype10.C
trunk/gcc/testsuite/g++.dg/cpp0x/decltype9.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34271
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/34271] [4.3 regression] ICE in invalid initialization of static template member
2007-11-28 21:17 [Bug c++/34271] New: [4.3 regression] ICE in invalid initialization of static template member reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-12-05 10:45 ` jakub at gcc dot gnu dot org
@ 2007-12-05 11:15 ` jakub at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-12-05 11:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2007-12-05 11:15 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34271
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-12-05 11:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-28 21:17 [Bug c++/34271] New: [4.3 regression] ICE in invalid initialization of static template member reichelt at gcc dot gnu dot org
2007-11-28 21:18 ` [Bug c++/34271] " reichelt at gcc dot gnu dot org
2007-12-02 21:13 ` pinskia at gcc dot gnu dot org
2007-12-05 10:45 ` jakub at gcc dot gnu dot org
2007-12-05 11:15 ` jakub 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).