Re: [C++ Patch] Adjust one more error message to use rich_location::add_range

2018-07-02 Thread David Malcolm
On Mon, 2018-07-02 at 12:58 +0200, Paolo Carlini wrote: > Hi, > > I was double checking my pending patch and going through the errors > we > emit in decl.c and elsewhere about thread_local and __thread and > noticed > another place, in parser.c, where using rich_location::add_range > seems > na

Re: [C++ Patch] Adjust one more error message to use rich_location::add_range

2018-07-02 Thread Jason Merrill
OK. On Mon, Jul 2, 2018 at 6:58 AM, Paolo Carlini wrote: > Hi, > > I was double checking my pending patch and going through the errors we emit > in decl.c and elsewhere about thread_local and __thread and noticed another > place, in parser.c, where using rich_location::add_range seems natural. >

[C++ Patch] Adjust one more error message to use rich_location::add_range

2018-07-02 Thread Paolo Carlini
Hi, I was double checking my pending patch and going through the errors we emit in decl.c and elsewhere about thread_local and __thread and noticed another place, in parser.c, where using rich_location::add_range seems natural. Note, we could in principle swap location and decl_specs->locatio