https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80943
Artyom Kolpakov <ddvamp007 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ddvamp007 at gmail dot com --- Comment #5 from Artyom Kolpakov <ddvamp007 at gmail dot com> --- Since gcc 14.1, this code again prints 1 in all modes since c++11. Given that CWG 2327 is still in the drafting stage, it seems a bit odd that behavior that was explained by a step away from following the standard has changed again. Perhaps the change is due to the implementation of CWG 2735, but that defect is still open and the behavior has become different from clang, so I'm not sure if everything is correct with this example.