[Bug c++/54875] Forward declare enums cannot be used as a template argument

daniel.kruegler at googlemail dot com gcc-bugzilla@gcc.gnu.org
Tue Oct 9 14:23:00 GMT 2012


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]



More information about the Gcc-bugs mailing list