http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52216
--- Comment #4 from Daniel Krügler <daniel.kruegler at googlemail dot com> --- (In reply to Paolo Carlini from comment #3) It seems that this is CWG 1465 and it will be resolved by http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1351 It seems that this bug entry is fixed now for gcc 4.9 (looks as if 1351 has already been implemented - at least partially), both test codes behave now as expected.