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.