public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100032] New: renaming alias template that also adds cv-qualifiers is deemed equivalent to underlying template
@ 2021-04-11 13:17 ppalka at gcc dot gnu.org
  2021-04-11 13:31 ` [Bug c++/100032] [8/9/10/11 Regression] " ppalka at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-04-11 13:17 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100032
           Summary: renaming alias template that also adds cv-qualifiers
                    is deemed equivalent to underlying template
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ppalka at gcc dot gnu.org
  Target Milestone: ---

DR 1286 allows alias templates to be equivalent to the underlying template if
the alias is just a renaming of the underlying template.  In the testcase
below, Z is arguably not equivalent to Y because of the added const qualifier,
but GCC still deems them equivalent, and accepts the testcase.

template <template<class> class> struct X { };
template <class> struct Y { };
template <class T> using Z = const Y<T>;
using T = X<Y>;
using T = X<Z>;

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

end of thread, other threads:[~2022-05-13 17:42 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-11 13:17 [Bug c++/100032] New: renaming alias template that also adds cv-qualifiers is deemed equivalent to underlying template ppalka at gcc dot gnu.org
2021-04-11 13:31 ` [Bug c++/100032] [8/9/10/11 Regression] " ppalka at gcc dot gnu.org
2021-04-12  8:29 ` rguenth at gcc dot gnu.org
2021-04-12 19:48 ` jason at gcc dot gnu.org
2021-04-13 18:48 ` jason at gcc dot gnu.org
2021-04-13 19:20 ` cvs-commit at gcc dot gnu.org
2021-04-14  0:37 ` [Bug c++/100032] [8/9/10 " jason at gcc dot gnu.org
2021-05-14  9:54 ` [Bug c++/100032] [9/10 " jakub at gcc dot gnu.org
2021-05-20 21:35 ` cvs-commit at gcc dot gnu.org
2021-06-01  8:20 ` rguenth at gcc dot gnu.org
2022-05-13 17:40 ` cvs-commit at gcc dot gnu.org
2022-05-13 17:42 ` jason 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).