re PR c++/46245 ([C++0x] rejects function with late-specified return type as a non...
authorJason Merrill <jason@redhat.com>
Wed, 25 May 2011 19:51:54 +0000 (15:51 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 25 May 2011 19:51:54 +0000 (15:51 -0400)
commitce9b1898e5516ed5cdc444f1c0de82de34939181
tree4479a705d9bb9315f2625bd328fe3e0aeca05493
parent5e24286319abceaee8846843c89c5c6332d25e51
re PR c++/46245 ([C++0x] rejects function with late-specified return type as a non-type template parameter)

PR c++/46245
* decl.c (grokdeclarator): Complain later for auto parameter.
* pt.c (splice_late_return_type): Handle use in a template
type-parameter.

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