Re: [PATCH] Fix PR c++/69098 (bogus errors with static data member template)

2016-02-10 Thread Jason Merrill
OK. Jason

Re: [PATCH] Fix PR c++/69098 (bogus errors with static data member template)

2016-02-10 Thread Patrick Palka
On Wed, 10 Feb 2016, Jason Merrill wrote: On 02/10/2016 02:16 PM, Patrick Palka wrote: ...in tsubst_qualified_id() I just copied the way variable templates are handled in tsubst_copy_and_build [TEMPLATE_ID_EXPR]. Let's factor that code out into another function rather than copy it. Done. D

Re: [PATCH] Fix PR c++/69098 (bogus errors with static data member template)

2016-02-10 Thread Jason Merrill
On 02/10/2016 02:16 PM, Patrick Palka wrote: ...in tsubst_qualified_id() I just copied the way variable templates are handled in tsubst_copy_and_build [TEMPLATE_ID_EXPR]. Let's factor that code out into another function rather than copy it. Jason

Re: [PATCH] Fix PR c++/69098 (bogus errors with static data member template)

2016-02-10 Thread Patrick Palka
On Wed, Feb 10, 2016 at 2:16 PM, Patrick Palka wrote: > tsubst_qualified_id() is currently not prepared to handle a SCOPED_REF > whose RHS is a variable template. r226642 made this deficiency more > obvious by marking all variable templates as dependent (thus forcing > them to be wrapped in a SCO

[PATCH] Fix PR c++/69098 (bogus errors with static data member template)

2016-02-10 Thread Patrick Palka
tsubst_qualified_id() is currently not prepared to handle a SCOPED_REF whose RHS is a variable template. r226642 made this deficiency more obvious by marking all variable templates as dependent (thus forcing them to be wrapped in a SCOPED_REF) but before that it was also possible to trigger a bogu