decl.c (grokdeclarator): Fix value assigned to typespec_loc, use min_location.
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 26 Apr 2019 11:46:15 +0000 (11:46 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 26 Apr 2019 11:46:15 +0000 (11:46 +0000)
commitaaa94b3c890f4b43ecb8f1134ea0e4c6af75768d
tree1c0dc97096e1ef610e7fb02c21bef827aed38732
parent849ab78ab0d022202a5b09163bbdfcc2375aeb74
decl.c (grokdeclarator): Fix value assigned to typespec_loc, use min_location.

/cp
2018-04-26  Paolo Carlini  <paolo.carlini@oracle.com>

* decl.c (grokdeclarator): Fix value assigned to typespec_loc, use
min_location.

/testsuite
2018-04-26  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/diagnostic/trailing1.C: New.

From-SVN: r270597
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/trailing1.C [new file with mode: 0644]