public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/90031] Bogus parse error trying to explicitly specialize a template variable inside class scope
[not found] <bug-90031-4@http.gcc.gnu.org/bugzilla/>
@ 2021-05-30 19:24 ` wjwray at gmail dot com
2021-08-23 11:35 ` redi at gcc dot gnu.org
2021-08-28 2:44 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: wjwray at gmail dot com @ 2021-05-30 19:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90031
Will Wray <wjwray at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |wjwray at gmail dot com
--- Comment #1 from Will Wray <wjwray at gmail dot com> ---
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 <class> static bool v;
template <class T> static bool v<T*>;
};
<source>:3:37: error: explicit template argument list not allowed
3 | template <class T> static bool v<T*>;
| ^~~~~
Duplicate bug 100231
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/90031] Bogus parse error trying to explicitly specialize a template variable inside class scope
[not found] <bug-90031-4@http.gcc.gnu.org/bugzilla/>
2021-05-30 19:24 ` [Bug c++/90031] Bogus parse error trying to explicitly specialize a template variable inside class scope wjwray at gmail dot com
@ 2021-08-23 11:35 ` redi at gcc dot gnu.org
2021-08-28 2:44 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2021-08-23 11:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90031
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |krzyk240 at gmail dot com
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
*** Bug 100231 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/90031] Bogus parse error trying to explicitly specialize a template variable inside class scope
[not found] <bug-90031-4@http.gcc.gnu.org/bugzilla/>
2021-05-30 19:24 ` [Bug c++/90031] Bogus parse error trying to explicitly specialize a template variable inside class scope wjwray at gmail dot com
2021-08-23 11:35 ` redi at gcc dot gnu.org
@ 2021-08-28 2:44 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-28 2:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90031
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 71954.
*** This bug has been marked as a duplicate of bug 71954 ***
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-08-28 2:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-90031-4@http.gcc.gnu.org/bugzilla/>
2021-05-30 19:24 ` [Bug c++/90031] Bogus parse error trying to explicitly specialize a template variable inside class scope wjwray at gmail dot com
2021-08-23 11:35 ` redi at gcc dot gnu.org
2021-08-28 2:44 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).