Re: [C++ PATCH] PR c++/92576 - redeclaration of variable template.

2019-12-19 Thread Richard Sandiford
Jason Merrill writes: > On Thu, Dec 19, 2019 at 9:05 AM Christophe Lyon > wrote: > >> On Tue, 17 Dec 2019 at 22:46, Jason Merrill wrote: >> > >> > The variable templates patch way back when forgot to add handling here. >> The >> > simplest answer seems to be recursing to the underlying declarati

Re: [C++ PATCH] PR c++/92576 - redeclaration of variable template.

2019-12-19 Thread Jason Merrill
On Thu, Dec 19, 2019 at 9:05 AM Christophe Lyon wrote: > On Tue, 17 Dec 2019 at 22:46, Jason Merrill wrote: > > > > The variable templates patch way back when forgot to add handling here. > The > > simplest answer seems to be recursing to the underlying declaration. > > > > Tested x86_64-pc-linu

Re: [C++ PATCH] PR c++/92576 - redeclaration of variable template.

2019-12-19 Thread Christophe Lyon
On Tue, 17 Dec 2019 at 22:46, Jason Merrill wrote: > > The variable templates patch way back when forgot to add handling here. The > simplest answer seems to be recursing to the underlying declaration. > > Tested x86_64-pc-linux-gnu, applying to trunk. > > * decl.c (redeclaration_error_me

[C++ PATCH] PR c++/92576 - redeclaration of variable template.

2019-12-17 Thread Jason Merrill
The variable templates patch way back when forgot to add handling here. The simplest answer seems to be recursing to the underlying declaration. Tested x86_64-pc-linux-gnu, applying to trunk. * decl.c (redeclaration_error_message): Recurse for variable templates. --- gcc/cp/decl