OSDN Git Service

PR c++/37967
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 31 Oct 2008 21:33:47 +0000 (21:33 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 31 Oct 2008 21:33:47 +0000 (21:33 +0000)
commitb7a0376155907591d65f9fc3242381bfeb0774ba
tree2c499200514eac0068bd5944e2a21587fe24c3ff
parent39311b358f90152cdb174406edd1e1037edc63fd
PR c++/37967
* decl.c (grokdeclarator): Diagnose auto function decl without
late return type and late return type function decl where type
is not auto.

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

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