public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105718] New: Forward Declarations of Constrained Partially Specialized Class Templates Rejected
@ 2022-05-24 13:42 mate.kelemen.12 at gmail dot com
  2022-05-24 16:52 ` [Bug c++/105718] " ppalka at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: mate.kelemen.12 at gmail dot com @ 2022-05-24 13:42 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105718
           Summary: Forward Declarations of Constrained Partially
                    Specialized Class Templates Rejected
           Product: gcc
           Version: 11.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mate.kelemen.12 at gmail dot com
  Target Milestone: ---

Created attachment 53029
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53029&action=edit
Preprocessed source run with: g++ -v --save-temps -std=c++20.

Multiple forward declarations of partially specialized class templates with
constraints (C++20 concepts) get rejected at the second declaration. Equivalent
code with explicit specializations compiles without issues. See the
[example](https://godbolt.org/z/1hd8Y6Ghh) on godbolt (Clang and MSVC don't
reject it). Source and preprocessed file in the attachments.

This issue seems to be a duplicate of #99501 from 03.2021, which hasn't gotten
any attention yet.

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

* [Bug c++/105718] Forward Declarations of Constrained Partially Specialized Class Templates Rejected
  2022-05-24 13:42 [Bug c++/105718] New: Forward Declarations of Constrained Partially Specialized Class Templates Rejected mate.kelemen.12 at gmail dot com
@ 2022-05-24 16:52 ` 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:52 UTC (permalink / raw)
  To: gcc-bugs

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

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> ---
Thanks for the bug report.  I think this (and PR99501) is ultimately a
duplicate of the earlier PR96363.

*** 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:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-24 13:42 [Bug c++/105718] New: Forward Declarations of Constrained Partially Specialized Class Templates Rejected mate.kelemen.12 at gmail dot com
2022-05-24 16:52 ` [Bug c++/105718] " 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).