August 30, 2023
https://issues.dlang.org/show_bug.cgi?id=24121

          Issue ID: 24121
           Summary: ImportC: typedef enum fails to compile
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Keywords: ImportC, rejects-valid
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: bugzilla@digitalmars.com
          Reporter: flyboynw@gmail.com
                CC: iamthewilsonator@hotmail.com

The following C code causes a segfault in DMD:

typedef enum
{
        SQL_IS_YEAR                             = 1,
        SQL_IS_MONTH                            = 2,
        SQL_IS_DAY                              = 3,
        SQL_IS_HOUR                             = 4,
        SQL_IS_MINUTE                           = 5,
        SQL_IS_SECOND                           = 6,
        SQL_IS_YEAR_TO_MONTH                    = 7,
        SQL_IS_DAY_TO_HOUR                      = 8,
        SQL_IS_DAY_TO_MINUTE                    = 9,
        SQL_IS_DAY_TO_SECOND                    = 10,
        SQL_IS_HOUR_TO_MINUTE                   = 11,
        SQL_IS_HOUR_TO_SECOND                   = 12,
        SQL_IS_MINUTE_TO_SECOND                 = 13
} SQLINTERVAL;

May be a regression of: https://issues.dlang.org/show_bug.cgi?id=22726

--