http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51242
--- Comment #13 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-11-26 12:00:17 UTC --- But something still seems wrong to me. Why warning depending on whether 'class' is there for the following: enum /*class*/ Code { SUCCESS = 0 }; Code a; short r[] = {a};