public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/96943] New: incomplete type used in nested name specifier
@ 2020-09-05 13:59 tangyixuan at mail dot dlut.edu.cn
2021-12-28 2:11 ` [Bug c++/96943] incomplete type for template for self named using an enum value pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: tangyixuan at mail dot dlut.edu.cn @ 2020-09-05 13:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96943
Bug ID: 96943
Summary: incomplete type used in nested name specifier
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: tangyixuan at mail dot dlut.edu.cn
Target Milestone: ---
The following code (maybe valid) is rejected by g++, while is accepted by
clang.
$ cat s.cpp
template < int I > struct CA1{
enum { EA = 0};
};
template < int I > struct CA2{
enum {
EA = 1, EA1 = CA2 <EA> :: EA
};
};
$ clang++ -c s.cpp
successful.
$ g++ -c s.cpp
s.cpp:6:43: error: incomplete type ‘CA2<1>’ used in nested name specifier
6 | EA = 1, EA1 = CA2 <EA> :: EA
|
Is this right?
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/96943] incomplete type for template for self named using an enum value
2020-09-05 13:59 [Bug c++/96943] New: incomplete type used in nested name specifier tangyixuan at mail dot dlut.edu.cn
@ 2021-12-28 2:11 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-28 2:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96943
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.1.2
Last reconfirmed| |2021-12-28
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Summary|incomplete type used in |incomplete type for
|nested name specifier |template for self named
| |using an enum value
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed, not a regression.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-28 2:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-05 13:59 [Bug c++/96943] New: incomplete type used in nested name specifier tangyixuan at mail dot dlut.edu.cn
2021-12-28 2:11 ` [Bug c++/96943] incomplete type for template for self named using an enum value 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).