Reject trailing return type for an operator auto().
authorVille Voutilainen <ville.voutilainen@gmail.com>
Mon, 20 Apr 2015 20:44:25 +0000 (23:44 +0300)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 20 Apr 2015 20:44:25 +0000 (16:44 -0400)
commit0cfabb3780b23de06e8fd52bfe15b2aea7b56f42
tree42719c0d52a2a7f32a6f1e3f3746d5a33db3bf17
parentcb864fbc7ef9d589056f876dfbf26101ba6c53d6
Reject trailing return type for an operator auto().

* decl.c (grokdeclarator): Reject trailing return types for
all conversion operators, don't handle conversion operators
in the previous checks that deal with auto.

From-SVN: r222248
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/g++.dg/cpp0x/auto9.C