Implement late-specified return type using 'auto'.
authorJason Merrill <jason@redhat.com>
Mon, 1 Sep 2008 03:33:19 +0000 (23:33 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 1 Sep 2008 03:33:19 +0000 (23:33 -0400)
commitf57ca1ea5f9ebcd518961e4251dd224524725f11
tree4df2798ed30c19a13c03271ee6b5b653821b5353
parent3699867372437d6fb23dc2d36fcbfcdc34d7bdc0
Implement late-specified return type using 'auto'.

        * cp-tree.h (struct cp_declarator): Add late_return_type field to
        function declarator.
        * parser.c (cp_parser_late_return_type_opt): New fn.
        (cp_parser_direct_declarator): Use it.
        (make_call_declarator): Put it in the declarator.
        * decl.c (grokdeclarator): Splice in late-specified return type.
        * pt.c (splice_late_return_type): New fn.

From-SVN: r139848
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/auto6.C [new file with mode: 0644]