public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/110687] New: problem with class template
@ 2023-07-16 15:25 irip at qq dot com
  2023-07-17  7:32 ` [Bug c++/110687] " rguenth at gcc dot gnu.org
  2023-07-17  9:13 ` redi at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: irip at qq dot com @ 2023-07-16 15:25 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110687
           Summary: problem with class template
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: irip at qq dot com
  Target Milestone: ---

Testcase as:

namespace N {
    template <class P> struct S01 {
        template <int I> struct T {};
        N::S01<P>::template T<1> m;
    };
}

Compiler error:
'T<1>' in 'struct N::S01<P>' does not name a type

The C++ standard allows you to declare a class template without adding typename
when referring to a previously defined type

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

end of thread, other threads:[~2023-07-17  9:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-16 15:25 [Bug c++/110687] New: problem with class template irip at qq dot com
2023-07-17  7:32 ` [Bug c++/110687] " rguenth at gcc dot gnu.org
2023-07-17  9:13 ` redi 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).