This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/53836] ICE: unexpected expression of kind template_parm_index


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]