[Bug c++/90031] Bogus parse error trying to explicitly specialize a template variable inside class scope

2021-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90031

Andrew Pinski  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #3 from Andrew Pinski  ---
Dup of bug 71954.

*** This bug has been marked as a duplicate of bug 71954 ***

[Bug c++/90031] Bogus parse error trying to explicitly specialize a template variable inside class scope

2021-08-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90031

Jonathan Wakely  changed:

   What|Removed |Added

 CC||krzyk240 at gmail dot com

--- Comment #2 from Jonathan Wakely  ---
*** Bug 100231 has been marked as a duplicate of this bug. ***

[Bug c++/90031] Bogus parse error trying to explicitly specialize a template variable inside class scope

2021-05-30 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90031

Will Wray  changed:

   What|Removed |Added

 CC||wjwray at gmail dot com

--- Comment #1 from Will Wray  ---
The same rejects-valid still on gcc-12 trunk on any partial specialization
of a variable template in class scope (and, now, same with std=c++20).
Accepted and works on most other compilers on CE, c++17, so easy to CONFIRM

Further reduced example https://godbolt.org/z/rcne3aEd7:

struct Struct {
template  static bool v;
template   static bool v;
};

:3:37: error: explicit template argument list not allowed
3 | template   static bool v;
  | ^

Duplicate bug 100231