[Issue 22631] ImportC: support C++11 unscoped enums with underlying type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 22 10:04:28 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=22631

--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
I have not been able to get clang on my Mac to compile:

   enum E : char { A };

in a .c file.

> clang --version
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

 > cat test.c
enum E : int
{
    A, B
};
 > clang -c test.c
test.c:1:8: error: expected identifier or '('
enum E : int
       ^
1 error generated.

--


More information about the Digitalmars-d-bugs mailing list