/cp
commitfb10536b23bf51dd537a0474112fe9428606c213
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Jul 2017 18:10:52 +0000 (3 18:10 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Jul 2017 18:10:52 +0000 (3 18:10 +0000)
tree3d72335ffc4e9f62cf1b92499864e7cb3b306c11
parentcb4faf05e96e14375a5de031927867d642cf03ed
/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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249935 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/trailing14.C [new file with mode: 0644]