https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65775

--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Mon Jul  3 18:10:52 2017
New Revision: 249935

URL: https://gcc.gnu.org/viewcvs?rev=249935&root=gcc&view=rev
Log:
/cp
2017-07-03  Paolo Carlini  <paolo.carl...@oracle.com>

        PR c++/65775
        * decl.c (grokdeclarator): Move checks on function return type after
        the splice_late_return_type call; if declspecs->locations[ds_type_spec]
        is UNKNOWN_LOCATION fall back to input_location.

/testsuite
2017-07-03  Paolo Carlini  <paolo.carl...@oracle.com>

        PR c++/65775
        * g++.dg/cpp0x/trailing14.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/trailing14.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to