https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58538
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- For comment 2, Clang now accepts the code (since 5.0.0), and so does EDG. That seems correct according to [temp.local]. GCC still gets the original case in comment 0 wrong.