https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95701
Jiang An <de34 at live dot cn> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |de34 at live dot cn --- Comment #2 from Jiang An <de34 at live dot cn> --- This is CWG1766. https://cplusplus.github.io/CWG/issues/1766.html Clang implemented the required constant evaluation failures recently, but seemly decided to keep the behavior outside of constant evaluation unchanged. https://reviews.llvm.org/D130058 https://reviews.llvm.org/D131307 https://reviews.llvm.org/D131528