https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110535
Bug ID: 110535 Summary: Internal error when performing a surrogate call with unsatisfied constraints Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: corentinjabot at gmail dot com Target Milestone: --- Consider int f1(int); template <auto N> struct A { using F = int(int); operator F*() requires N { return f1; } }; int i = A<true>{}(0); // Fine int j = A<false>{}(0); // Crash This affects tip of trunk on CE https://godbolt.org/z/7vahavxv6