public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40633] New: ICE with scoped enum inside a template
@ 2009-07-03 11:42 public at alisdairm dot net
2009-07-06 11:24 ` [Bug c++/40633] [c++0x] " reichelt at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: public at alisdairm dot net @ 2009-07-03 11:42 UTC (permalink / raw)
To: gcc-bugs
The following code produces an internal compiler error:
template< typename T >
struct wrap {
enum class E { val };
};
Note that there is no problem supplying a fixed-base for a 'classic' enum, this
is purely an issue with the enum class keyword combination.
Tested under MinGW 4.4.0
--
Summary: ICE with scoped enum inside a template
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: public at alisdairm dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40633
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/40633] [c++0x] ICE with scoped enum inside a template
2009-07-03 11:42 [Bug c++/40633] New: ICE with scoped enum inside a template public at alisdairm dot net
@ 2009-07-06 11:24 ` reichelt at gcc dot gnu dot org
2009-07-07 17:56 ` jason 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 @ 2009-07-06 11:24 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2009-07-06 11:23:50
date| |
Summary|ICE with scoped enum inside |[c++0x] ICE with scoped enum
|a template |inside a template
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40633
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/40633] [c++0x] ICE with scoped enum inside a template
2009-07-03 11:42 [Bug c++/40633] New: ICE with scoped enum inside a template public at alisdairm dot net
2009-07-06 11:24 ` [Bug c++/40633] [c++0x] " reichelt at gcc dot gnu dot org
@ 2009-07-07 17:56 ` jason at gcc dot gnu dot org
2009-07-07 22:08 ` jason at gcc dot gnu dot org
2009-07-07 22:12 ` jason at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-07-07 17:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jason at gcc dot gnu dot org 2009-07-07 17:55 -------
Subject: Bug 40633
Author: jason
Date: Tue Jul 7 17:55:26 2009
New Revision: 149341
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149341
Log:
PR c++/37816
* decl.c (build_enumerator): Don't add enumerators for a
scoped enum to the enclosing class.
PR c++/40639
* decl.c (start_enum): Allow dependent underlying type.
PR c++/40633
* decl.c (finish_enum): Finish scope even in a template.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/enum4.C
trunk/gcc/testsuite/g++.dg/cpp0x/enum5.C
trunk/gcc/testsuite/g++.dg/cpp0x/enum6.C
trunk/gcc/testsuite/g++.dg/cpp0x/enum7.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40633
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/40633] [c++0x] ICE with scoped enum inside a template
2009-07-03 11:42 [Bug c++/40633] New: ICE with scoped enum inside a template public at alisdairm dot net
2009-07-06 11:24 ` [Bug c++/40633] [c++0x] " reichelt at gcc dot gnu dot org
2009-07-07 17:56 ` jason at gcc dot gnu dot org
@ 2009-07-07 22:08 ` jason at gcc dot gnu dot org
2009-07-07 22:12 ` jason at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-07-07 22:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jason at gcc dot gnu dot org 2009-07-07 22:08 -------
Subject: Bug 40633
Author: jason
Date: Tue Jul 7 22:08:01 2009
New Revision: 149352
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149352
Log:
PR c++/37816
* decl.c (build_enumerator): Don't add enumerators for a
scoped enum to the enclosing class.
PR c++/40639
* decl.c (start_enum): Allow dependent underlying type.
PR c++/40633
* decl.c (finish_enum): Finish scope even in a template.
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/enum4.C
- copied unchanged from r149341, trunk/gcc/testsuite/g++.dg/cpp0x/enum4.C
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/enum5.C
- copied unchanged from r149341, trunk/gcc/testsuite/g++.dg/cpp0x/enum5.C
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/enum6.C
- copied unchanged from r149341, trunk/gcc/testsuite/g++.dg/cpp0x/enum6.C
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/enum7.C
- copied unchanged from r149341, trunk/gcc/testsuite/g++.dg/cpp0x/enum7.C
Modified:
branches/gcc-4_4-branch/gcc/ (props changed)
branches/gcc-4_4-branch/gcc/ChangeLog-2008 (props changed)
branches/gcc-4_4-branch/gcc/cp/ChangeLog
branches/gcc-4_4-branch/gcc/cp/ChangeLog-2007 (props changed)
branches/gcc-4_4-branch/gcc/cp/ChangeLog-2008 (props changed)
branches/gcc-4_4-branch/gcc/cp/decl.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog-2008 (props changed)
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/ (props changed)
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/decltype-38655.C
(props changed)
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/torture/pr36227.c (props
changed)
branches/gcc-4_4-branch/gcc/testsuite/gcc.target/x86_64/abi/callabi/
(props changed)
Propchange: branches/gcc-4_4-branch/gcc/
('svn:mergeinfo' modified)
Propchange: branches/gcc-4_4-branch/gcc/ChangeLog-2008
('svn:mergeinfo' modified)
Propchange: branches/gcc-4_4-branch/gcc/cp/ChangeLog-2007
('svn:mergeinfo' modified)
Propchange: branches/gcc-4_4-branch/gcc/cp/ChangeLog-2008
('svn:mergeinfo' modified)
Propchange: branches/gcc-4_4-branch/gcc/testsuite/ChangeLog-2008
('svn:mergeinfo' modified)
Propchange: branches/gcc-4_4-branch/gcc/testsuite/g++.dg/
('svn:mergeinfo' modified)
Propchange: branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/decltype-38655.C
('svn:mergeinfo' modified)
Propchange: branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/torture/pr36227.c
('svn:mergeinfo' modified)
Propchange:
branches/gcc-4_4-branch/gcc/testsuite/gcc.target/x86_64/abi/callabi/
('svn:mergeinfo' modified)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40633
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/40633] [c++0x] ICE with scoped enum inside a template
2009-07-03 11:42 [Bug c++/40633] New: ICE with scoped enum inside a template public at alisdairm dot net
` (2 preceding siblings ...)
2009-07-07 22:08 ` jason at gcc dot gnu dot org
@ 2009-07-07 22:12 ` jason at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-07-07 22:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jason at gcc dot gnu dot org 2009-07-07 22:12 -------
Fixed for 4.4.1.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40633
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-07-07 22:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-03 11:42 [Bug c++/40633] New: ICE with scoped enum inside a template public at alisdairm dot net
2009-07-06 11:24 ` [Bug c++/40633] [c++0x] " reichelt at gcc dot gnu dot org
2009-07-07 17:56 ` jason at gcc dot gnu dot org
2009-07-07 22:08 ` jason at gcc dot gnu dot org
2009-07-07 22:12 ` jason 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).