[Issue 24121] ImportC: typedef enum fails to compile when generating .di file
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 25 22:54:25 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24121
--- Comment #5 from Walter Bright <bugzilla at digitalmars.com> ---
Currently, the .i file:
typedef enum
{
SQL_IS_YEAR = 1,
SQL_IS_MONTH = 2
} SQLINTERVAL;
produces a .di file:
// D import file generated from 'test.i'
extern (C)
{
align enum SQLINTERVAL
{
SQL_IS_YEAR = 1,
SQL_IS_MONTH = 2,
}
alias SQLINTERVAL = enum SQLINTERVAL;
}
which is just wrong.
--
More information about the Digitalmars-d-bugs
mailing list