http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53606 --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-06-08 00:30:14 UTC --- This is a GNU extension, if you use -pedantic to disable it then 4.6 and 4.7 compile the code without a diagnostic.