[Bug c++/102975] Local alias diagnosed as unused when used in failing constraint

2021-11-02 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102975 Patrick Palka changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/102975] Local alias diagnosed as unused when used in failing constraint

2021-10-31 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102975 --- Comment #4 from Johel Ernesto Guerrero Peña --- I'm fine with closing this as RESOLVED INVALID or something along those lines.

[Bug c++/102975] Local alias diagnosed as unused when used in failing constraint

2021-10-31 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102975 --- Comment #3 from Patrick Palka --- (In reply to Patrick Palka from comment #2) > (In reply to Andrew Pinski from comment #1) > > Hmm, this is interesting: > > template concept Never = false; > > template concept C = Never; > > void f() { > >

[Bug c++/102975] Local alias diagnosed as unused when used in failing constraint

2021-10-31 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102975 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

[Bug c++/102975] Local alias diagnosed as unused when used in failing constraint

2021-10-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102975 --- Comment #1 from Andrew Pinski --- Hmm, this is interesting: template concept Never = false; template concept C = Never; void f() { struct X { // using type = int; }; static_assert(not C); } is able to compile. I don't know enough