public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/97450] New: [concepts] Bogus errors during constraint normalization
@ 2020-10-15 19:39 ppalka at gcc dot gnu.org
2021-11-11 22:29 ` [Bug c++/97450] " pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: ppalka at gcc dot gnu.org @ 2020-10-15 19:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97450
Bug ID: 97450
Summary: [concepts] Bogus errors during constraint
normalization
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: ---
We accept the first static_assert below without error, but we reject the second
due to seemingly bogus errors during normalization of E's
constraint-expression.
$ cat testcase.C
template<class T> concept C = true;
template<class T> concept D = C<typename T::type>;
template<class T> concept E = D<int>;
static_assert(D<int>); // OK
static_assert(E<int>); // error
$ g++ -std=c++20 testcase.C
testcase.C:5:22: error: ‘int’ is not a class, struct, or union type
5 | static_assert(E<int>); // error
| ^
testcase.C:5:22: error: ‘int’ is not a class, struct, or union type
testcase.C:5:15: error: non-constant condition for static assertion
5 | static_assert(E<int>); // error
| ^~~~~~
testcase.C:5:15: error: ‘int’ is not a class, struct, or union type
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/97450] [concepts] Bogus errors during constraint normalization
2020-10-15 19:39 [Bug c++/97450] New: [concepts] Bogus errors during constraint normalization ppalka at gcc dot gnu.org
@ 2021-11-11 22:29 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-11 22:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97450
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2021-11-11
Status|UNCONFIRMED |NEW
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-11-11 22:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-15 19:39 [Bug c++/97450] New: [concepts] Bogus errors during constraint normalization ppalka at gcc dot gnu.org
2021-11-11 22:29 ` [Bug c++/97450] " 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).