re PR c++/15064 (typeid of template parameter gives ICE)
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Fri, 23 Apr 2004 12:57:19 +0000 (12:57 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Fri, 23 Apr 2004 12:57:19 +0000 (12:57 +0000)
commit4424e0da57fd1562550505beefc2b6b62a733701
treef81ab6c5e87fac23e85d0194f742f571a89d6fa6
parentd0fd134432941620ac264dbd55096fdcef0361d6
re PR c++/15064 (typeid of template parameter gives ICE)

PR c++/15064
* parser.c (cp_parser_postfix_expression): typeid operator cannot be
used in integral constant expressions.

PR c++/15064
* g++.dg/template/crash18.C: New test.

From-SVN: r81088
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/crash18.C [new file with mode: 0644]