https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99895
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot
gnu.org
Status|UNCONFIRMED |ASSIGNED
CC| |ppalka at gcc dot gnu.org
Ever confirmed|0 |1
Last reconfirmed| |2021-05-27
--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Confirmed. Reduced:
struct fixed_string { consteval auto size() const { return 42; } };
template<fixed_string s>
static void VerifyHash() {
[](auto){ s.size(); };
}
void foo() { VerifyHash<{}>(); }
Declaring size() constexpr instead of consteval makes us accept.