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
* [Bug c++/110687] problem with class template
2023-07-16 15:25 [Bug c++/110687] New: problem with class template irip at qq dot com
@ 2023-07-17 7:32 ` rguenth at gcc dot gnu.org
2023-07-17 9:13 ` redi at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-17 7:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110687
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |11.4.0
Known to fail| |10.5.0, 11.3.0
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 11 accepts this and is the oldest still supported compiler. Likely a
duplicate of an existing (fixed) bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/110687] problem with class template
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
1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2023-07-17 9:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110687
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed for 12.1 and 11.4 by:
c++: template-id with current inst qualifier [PR102300]
The patch for PR41723 properly changed one place to look into the current
instantiation; now we need to fix this place as well.
PR c++/102300
gcc/cp/ChangeLog:
* parser.cc (cp_parser_template_name): Use dependent_scope_p.
Probably a dup of PR 41723.
^ 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).