https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111890
Bug ID: 111890 Summary: ICE in build_new_op, friend operator in nested template specialization with constrained return type Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: kcayimckaghxtnkrvg at cwmxc dot com Target Milestone: --- I have encountered ICE when writing this demo code: https://godbolt.org/z/qTsPh5PbW I don't have shorter repro case, sorry. The code compiles fine with clang.