https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103183
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- There has to be C++ defect report about this. Because clang has the behavior you are requesting but ICC, MSVC all act the same as GCC.