http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51242



Paolo Carlini <paolo.carlini at oracle dot com> changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

                 CC|                            |paolo.carlini at oracle dot

                   |                            |com



--- Comment #15 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-11-26 
12:12:12 UTC ---

To be clear, for:



enum class Code {

  SUCCESS = 0

};



Code a;// = static_cast<Code>(SHRT_MAX+1);



short r[] = {a};



we *error* out anyway, isn't that we are only emitting a warning and only when

we are assigning the SHRT_MAX + 1.

Reply via email to