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

[clang] alloc_align attribute crashes if applied to a function pointer #125078

Open
MacDue opened this issue Jan 30, 2025 · 2 comments
Open

[clang] alloc_align attribute crashes if applied to a function pointer #125078

MacDue opened this issue Jan 30, 2025 · 2 comments
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema" crash Prefer [crash-on-valid] or [crash-on-invalid]

Comments

@MacDue
Copy link
Member

MacDue commented Jan 30, 2025

Reproducer:

void aa_fn_ptr(int* (*fn_ptr)(int)  __attribute__((alloc_align(1))));

Compile with clang (any options)

CE: https://godbolt.org/z/z81edvhWs

@MacDue MacDue added clang:frontend Language frontend issues, e.g. anything involving "Sema" bug Indicates an unexpected problem or unintended behavior labels Jan 30, 2025
@llvmbot
Copy link
Member

llvmbot commented Jan 30, 2025

@llvm/issue-subscribers-clang-frontend

Author: Benjamin Maxwell (MacDue)

Reproducer: ``` void aa_fn_ptr(int* (*member)(int) __attribute__((alloc_align(1)))); ``` Compile with clang (any options)

CE: https://godbolt.org/z/14zxWYdM4

@llvmbot
Copy link
Member

llvmbot commented Jan 30, 2025

@llvm/issue-subscribers-bug

Author: Benjamin Maxwell (MacDue)

Reproducer: ``` void aa_fn_ptr(int* (*member)(int) __attribute__((alloc_align(1)))); ``` Compile with clang (any options)

CE: https://godbolt.org/z/14zxWYdM4

@EugeneZelenko EugeneZelenko added crash Prefer [crash-on-valid] or [crash-on-invalid] and removed bug Indicates an unexpected problem or unintended behavior labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema" crash Prefer [crash-on-valid] or [crash-on-invalid]
Projects
None yet
Development

No branches or pull requests

3 participants