re PR c++/37965 (ICE with invalid auto variable in template)
authorJakub Jelinek <jakub@redhat.com>
Fri, 31 Oct 2008 21:30:05 +0000 (22:30 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 31 Oct 2008 21:30:05 +0000 (22:30 +0100)
commit0a3098bba15a5f03c017683cad6aa81427865d00
tree1939145203a349699ba956bf379277b69453d127
parent728a8a74ac65513473bdfac4a426702737b2ca5b
re PR c++/37965 (ICE with invalid auto variable in template)

PR c++/37965
* decl.c (cp_finish_decl): Diagnose type_uses_auto type with
no initializer.

* g++.dg/cpp0x/auto7.C: New test.

From-SVN: r141501
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/auto7.C [new file with mode: 0644]