This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54875] Forward declare enums cannot be used as a template argument
- From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 09 Oct 2012 14:23:36 +0000
- Subject: [Bug c++/54875] Forward declare enums cannot be used as a template argument
- Auto-submitted: auto-generated
- References: <bug-54875-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54875
Daniel KrÃgler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler at
| |googlemail dot com
--- Comment #1 from Daniel KrÃgler <daniel.kruegler at googlemail dot com> 2012-10-09 14:23:36 UTC ---
I can reproduce this error with gcc 4.8.0 20120930 (experimental), were I get:
"main.cpp|7|internal compiler error: tree check: expected enumeral_type, have
template_type_parm in tsubst_enum, at cp/pt.c:18886|"
[Note the slight difference in the source code line number]