OSDN Git Service

PR c++/51401
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Dec 2011 00:50:26 +0000 (00:50 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Dec 2011 00:50:26 +0000 (00:50 +0000)
commite102b28200e1541db6c4b93467533998856e0cb1
tree9568d2f1b080a0e4b9445607ee40724faa3c9f59
parent1bfb01fad3c22223661ae6060fd60424bde83068
PR c++/51401
* decl.c (grokdeclarator): Error for auto on non-static data members.

* g++.dg/cpp0x/auto7.C: Adjust expected error message.
* g++.dg/cpp0x/auto29.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182097 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/auto29.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/auto7.C