[Issue 11101] Invalid enum member overflow message

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 22 13:11:21 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11101



--- Comment #2 from Mike Wey <mike-wey at planet.nl> 2013-09-22 13:11:20 PDT ---
That would be a valid explanation only the following compiles successfully:

public enum GTokenType
{
    EOF = 0,
    LEFT_PAREN = '(',
    RIGHT_PAREN = ')',
    LEFT_CURLY = '{',
    RIGHT_CURLY = '}',
    LEFT_BRACE = '[',
    RIGHT_BRACE = ']',
    EQUAL_SIGN = '=',
    COMMA = ',',
    NONE = 110,
    ERROR,
    CHAR,
    BINARY,
    OCTAL,
    INT,
    HEX,
    FLOAT,
    STRING,
    SYMBOL,
    IDENTIFIER,
    IDENTIFIER_NULL,
    COMMENT_SINGLE,
    COMMENT_MULTI,
    LAST
}

public enum GtkRcTokenType
{
    INVALID = GTokenType.LAST,
    INCLUDE,
}

If the value of NONE is larger than 110 it fails to compile.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list