decl.c (bad_specifiers): Add const location_t* parameter and use locations in…
decl.c (bad_specifiers): Add const location_t* parameter and use locations in error messages about... /cp 2018-06-23 Paolo Carlini <paolo.carlini@oracle.com> * decl.c (bad_specifiers): Add const location_t* parameter and use locations in error messages about 'inline' and 'virtual'. (mark_inline_variable): Add location_t parameter and use it in error_at and pedwarn messages. (grokdeclarator): Use declspecs->locations[ds_constexpr], declspecs->locations[ds_concept], declspecs->locations[ds_virtual], declspecs->locations[ds_inline] in many error messages; adjust bad_specifiers and mark_inline_variable calls. (grokvardecl): Use declspecs->locations[ds_concept] in error message. /testsuite 2018-06-23 Paolo Carlini <paolo.carlini@oracle.com> * g++.dg/concepts/locations1.C: New. * g++.dg/cpp0x/locations1.C: Likewise. * g++.dg/cpp1z/inline-var2.C: Test locations too. * g++.dg/cpp1z/inline-var3.C: Likewise. From-SVN: r261982
Showing
This diff is collapsed.
Click to expand it.
gcc/testsuite/g++.dg/concepts/locations1.C
0 → 100644
gcc/testsuite/g++.dg/cpp0x/locations1.C
0 → 100644
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment