parser.c (set_and_check_decl_spec_loc): Use rich_location::add_range in error message...
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 2 Jul 2018 21:42:10 +0000 (21:42 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 2 Jul 2018 21:42:10 +0000 (21:42 +0000)
commita5eae716f66322842da21c17002c66b10c6f6b40
treecc166090c6dc9638364d6616d940031863f435fa
parentee896276f6483832d45c9280915367c825c32098
parser.c (set_and_check_decl_spec_loc): Use rich_location::add_range in error message about __thread and thread_local...

/cp
2018-07-02  Paolo Carlini  <paolo.carlini@oracle.com>

* parser.c (set_and_check_decl_spec_loc): Use rich_location::add_range
in error message about __thread and thread_local at the same time.

/testsuite
2018-07-02  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/diagnostic/thread-thread_local.C: New.

From-SVN: r262321
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/thread-thread_local.C [new file with mode: 0644]