public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/94405] New: [temp.names]p4 not fully implemented
@ 2020-03-30 15:57 mpolacek at gcc dot gnu.org
  2021-08-26 21:20 ` [Bug c++/94405] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-03-30 15:57 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94405
           Summary: [temp.names]p4 not fully implemented
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org
  Target Milestone: ---

<https://eel.is/c++draft/temp.names#4.sentence-2> says "In a qualified-id of a
declarator-id or in a qualified-id formed by a class-head-name or
enum-head-name, the keyword template shall not appear at the top level." so the
following probably shouldn't compile:

template<typename T> struct A {
  template<typename U> struct B;
  template<typename U> struct B<U*>;
};
template<typename T> template<typename U> struct A<T>::template B<U*> {};

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

* [Bug c++/94405] [temp.names]p4 not fully implemented
  2020-03-30 15:57 [Bug c++/94405] New: [temp.names]p4 not fully implemented mpolacek at gcc dot gnu.org
@ 2021-08-26 21:20 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-26 21:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Only MSVC rejects this code.

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

end of thread, other threads:[~2021-08-26 21:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-30 15:57 [Bug c++/94405] New: [temp.names]p4 not fully implemented mpolacek at gcc dot gnu.org
2021-08-26 21:20 ` [Bug c++/94405] " 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).