re PR c++/34089 (Segfault on specialization using struct instead of template function.)
authorJakub Jelinek <jakub@redhat.com>
Tue, 20 Nov 2007 16:19:40 +0000 (17:19 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 20 Nov 2007 16:19:40 +0000 (17:19 +0100)
commit542f8eb9890fbd94f1ce22b0b1291669ec91ce8c
tree84b8939a4ce1abb5342a7e68a27b7537396b9bd8
parent8ef62eeb746043239772dd99ad2cff5176735713
re PR c++/34089 (Segfault on specialization using struct instead of template function.)

PR c++/34089
* parser.c (cp_parser_class_head): Reject function template ids.

* g++.dg/template/crash74.C: New test.

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