https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64665
--- Comment #3 from Duncan Forster <duncan.forster at mac dot com> --- (In reply to Richard Smith from comment #2) I've been back and forth about what is correct behavior , in the end I think you're correct. GCC seems to be doing the right thing according to the latest C++ defect reports.