This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/65775] Late-specified return type bypasses return type checks (qualified, function, array)


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.carlini@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.carlini@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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]