This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53836] ICE: unexpected expression of kind template_parm_index
- 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, 03 Jul 2012 17:27:32 +0000
- Subject: [Bug c++/53836] ICE: unexpected expression of kind template_parm_index
- Auto-submitted: auto-generated
- References: <bug-53836-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53836
Daniel KrÃgler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler at
| |googlemail dot com
--- Comment #2 from Daniel KrÃgler <daniel.kruegler at googlemail dot com> 2012-07-03 17:27:32 UTC ---
The problem persist in gcc 4.8.0 20120624 (experimental), even though the error
message is different (and no ICE anymore):
|In function 'void g()':|
9|error: '(const int)Q' is not a constant expression|
9|note: in template argument for type 'int' |
9|error: invalid type in declaration before ';' token|
14| required from here|
9|warning: unused variable 'a' [-Wunused-variable]|
The original code should be accepted.