https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95143
Bug ID: 95143 Summary: SFINAE failure with static_cast Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: familiebaumanns at gmail dot com Target Milestone: --- Bug 90080 - [8 Regression] SFINAE failure with static_cast Bug 87748 - [8 Regression] G++-8 treats SFINAE as error This bug seems to be back in g++-10.1 See the following code: https://godbolt.org/z/yVjQf9 It works in g++-9 and in g++-11 / g++-trunk.