public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/104043] New: Non-type template specialization with another type is accepted but ignored
@ 2022-01-15 16:16 fchelnokov at gmail dot com
  2022-01-15 19:02 ` [Bug c++/104043] " ppalka at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: fchelnokov at gmail dot com @ 2022-01-15 16:16 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104043
           Summary: Non-type template specialization with another type is
                    accepted but ignored
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fchelnokov at gmail dot com
  Target Milestone: ---

This code
```
template <int...>
struct A;

template <char c>
struct A<c> {};

A<1> a;
```
is accepted by other compiler but GCC complains:
```
error: aggregate 'A<1> a' has incomplete type and cannot be defined
```
Demo: https://gcc.godbolt.org/z/MbrndEj6q

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

* [Bug c++/104043] Non-type template specialization with another type is accepted but ignored
  2022-01-15 16:16 [Bug c++/104043] New: Non-type template specialization with another type is accepted but ignored fchelnokov at gmail dot com
@ 2022-01-15 19:02 ` ppalka at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: ppalka at gcc dot gnu.org @ 2022-01-15 19:02 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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

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

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

end of thread, other threads:[~2022-01-15 19:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-15 16:16 [Bug c++/104043] New: Non-type template specialization with another type is accepted but ignored fchelnokov at gmail dot com
2022-01-15 19:02 ` [Bug c++/104043] " 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).