Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute enum_extensibility(closed) is dumped into wrong position. #93

Open
giulianobelinassi opened this issue Jul 22, 2024 · 1 comment
Labels
bug Something isn't working LLVM bug Bug residing in LLVM that affects clang-extract

Comments

@giulianobelinassi
Copy link
Collaborator

Found by @5c4la4

enum MHD_Result {
    MHD_NO = 0,
    MHD_YES = 1
}__attribute__((enum_extensibility(closed)));

enum MHD_Result f() {
    return MHD_NO;
}

Here the __attribute__((enum_extensibility(closed))) is dumped into an incorrect location. This is a bug in LLVM AST dumper.

@giulianobelinassi giulianobelinassi added bug Something isn't working LLVM bug Bug residing in LLVM that affects clang-extract labels Jul 22, 2024
@giulianobelinassi
Copy link
Collaborator Author

The testcase small/attr-13.c contains this code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working LLVM bug Bug residing in LLVM that affects clang-extract
Projects
None yet
Development

No branches or pull requests

1 participant