[pushed] c++: Fix class NTTP constness handling [PR98810]

2021-02-25 Thread Jason Merrill via Gcc-patches
Here, when substituting still-dependent args into an alias template, we see a non-const type because the default argument is non-const, and is not a template parm object because it's still dependent. Tested x86_64-pc-linux-gnu, applying to trunk. gcc/cp/ChangeLog: PR c++/98810 *

Re: [pushed] c++: Fix class NTTP constness handling [PR98810]

2021-03-05 Thread Eric Botcazou
> Here, when substituting still-dependent args into an alias template, we see > a non-const type because the default argument is non-const, and is not a > template parm object because it's still dependent. > > Tested x86_64-pc-linux-gnu, applying to trunk. > > gcc/cp/ChangeLog: > > PR c++/

Re: [pushed] c++: Fix class NTTP constness handling [PR98810]

2021-03-05 Thread Marek Polacek via Gcc-patches
On Fri, Mar 05, 2021 at 06:00:04PM +0100, Eric Botcazou wrote: > > Here, when substituting still-dependent args into an alias template, we see > > a non-const type because the default argument is non-const, and is not a > > template parm object because it's still dependent. > > > > Tested x86_64-p

Re: [pushed] c++: Fix class NTTP constness handling [PR98810]

2021-03-06 Thread Eric Botcazou
> GCC 9 doesn't have the "c++20" target yet. > > * g++.dg/cpp2a/nontype-class-defarg1.C: Use target c++2a. Thanks! -- Eric Botcazou