[C++ Patch] Improve grokfndecl locations

2018-06-19 Thread Paolo Carlini
Hi, the below implements a couple of independent ideas. First, adds a const cp_decl_specifier_seq * parameter, similarly to grokvardecl: this way the function has available locations[ds_inline], locations[ds_constexpr], locations[ds_type_spec] which can use in some error messages. Second, the

Re: [C++ Patch] Improve grokfndecl locations

2018-06-20 Thread Jason Merrill
On Tue, Jun 19, 2018 at 4:55 PM, Paolo Carlini wrote: > Hi, > > the below implements a couple of independent ideas. First, adds a const > cp_decl_specifier_seq * parameter, similarly to grokvardecl: this way the > function has available locations[ds_inline], locations[ds_constexpr], > locations[ds