[Bug c++/50559] g++ bails out after seeing overflow in an enumeration value

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 28 17:55:00 GMT 2011


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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-09-28 17:27:41 UTC ---
Reduced testcase:
typedef enum ColorTag { RED = 2147483647, GREEN, BLUE } Color;

int main()
{
    Color x = GREEN;
    return 0;
}



More information about the Gcc-bugs mailing list