http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60273
Daniel Krügler <daniel.kruegler at googlemail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.kruegler@googlemail. | |com --- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> --- My understanding is that your example is touching an open language issue, namely http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1430 The current tendency seems to be that this should be ill-formed (personally I'm not happy with that decision). Current clang and gcc do both reject your code. I suggest to mark this issue as deferred pending 1430.