public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99501] New: Can't forward declare partial specialization of template with NTTP previously partially specialized
@ 2021-03-10  0:55 johelegp at gmail dot com
  2022-05-24 16:53 ` [Bug c++/99501] " ppalka at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: johelegp at gmail dot com @ 2021-03-10  0:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99501

            Bug ID: 99501
           Summary: Can't forward declare partial specialization of
                    template with NTTP previously partially specialized
           Product: gcc
           Version: 11.0
               URL: https://godbolt.org/z/Mhnxrf
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: johelegp at gmail dot com
                CC: johelegp at gmail dot com
  Target Milestone: ---

See https://godbolt.org/z/Mhnxrf.
```C++
template<auto>struct X;
template<auto V>requires requires{V.a;}struct X<V>;
template<auto V>requires requires{V.b;}struct X<V>;
```
Completed:
```C++
template<auto>struct X{};
template<auto V>requires requires{V.a;}struct X<V>{static constexpr bool
v{false};};
template<auto V>requires requires{V.b;}struct X<V>;
struct A{int a;};
static_assert(!X<A{}>::v);
struct B{int b;};
template<auto V>requires requires{V.b;}struct X<V>{static constexpr bool
v{true};};
static_assert(X<B{}>::v);
```

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/99501] Can't forward declare partial specialization of template with NTTP previously partially specialized
  2021-03-10  0:55 [Bug c++/99501] New: Can't forward declare partial specialization of template with NTTP previously partially specialized johelegp at gmail dot com
@ 2022-05-24 16:53 ` ppalka at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: ppalka at gcc dot gnu.org @ 2022-05-24 16:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99501

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> ---
dup

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-24 16:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10  0:55 [Bug c++/99501] New: Can't forward declare partial specialization of template with NTTP previously partially specialized johelegp at gmail dot com
2022-05-24 16:53 ` [Bug c++/99501] " ppalka 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).