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 crash on improper use of __array_extent #80474

Closed
philnik777 opened this issue Feb 2, 2024 · 1 comment · Fixed by #94173
Closed

Clang crash on improper use of __array_extent #80474

philnik777 opened this issue Feb 2, 2024 · 1 comment · Fixed by #94173
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema" crash-on-invalid

Comments

@philnik777
Copy link
Contributor

Clang crashes on

auto test() {
  return __array_extent(int, );
}

https://godbolt.org/z/3Wa51enP9

@philnik777 philnik777 added clang:frontend Language frontend issues, e.g. anything involving "Sema" crash-on-invalid labels Feb 2, 2024
@llvmbot
Copy link
Member

llvmbot commented Feb 2, 2024

@llvm/issue-subscribers-clang-frontend

Author: Nikolas Klauser (philnik777)

Clang crashes on ```c++ auto test() { return __array_extent(int, ); } ``` https://godbolt.org/z/3Wa51enP9

Sirraide pushed a commit that referenced this issue Jun 3, 2024
Check whether parsing of the argument failed before attempting
to build the expression. 

Fixes #80474.
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-on-invalid
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants