[Bug c++/105693] Requires-clause constructor is not selected
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Oct 26 20:37:12 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105693
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2022-10-26
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed. reduced testcase without includes:
```
template<typename T, typename T1>
constexpr bool same = false;
template<typename T>
constexpr bool same<T, T> = true;
template<typename T>
struct A {
A() = default;
A() requires (same<T,int>) = delete;
};
A<int> a;
```
More information about the Gcc-bugs
mailing list