-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
infinite recursion on invalid class #104802
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
confirmed
Verified by a second party
crash-on-invalid
regression:19
Regression in 19 release
Comments
d469794 seems to be the culprit. before that compilation terminates without crashes. cc @Fznamznon |
@llvm/issue-subscribers-clang-frontend Author: kadir çetinkaya (kadircet)
```cpp
$ cat prep.cc
class foo {
foo a;
virtual int c();
};
```
|
Looks like a faults on godbolt: https://godbolt.org/z/v3cr7PsxW |
I'm testing a potential fix and I think it will be sufficiently safe to make it into Clang 19.x. |
AaronBallman
added a commit
to AaronBallman/llvm-project
that referenced
this issue
Aug 19, 2024
d469794 was fixing an issue with triggering vtable instantiations, but it accidentally introduced infinite recursion when the type to be checked is the same as the type used in a base specifier or field declaration. Fixes llvm#104802
llvmbot
pushed a commit
to llvmbot/llvm-project
that referenced
this issue
Aug 19, 2024
d469794 was fixing an issue with triggering vtable instantiations, but it accidentally introduced infinite recursion when the type to be checked is the same as the type used in a base specifier or field declaration. Fixes llvm#104802 (cherry picked from commit 435cb0d)
tru
pushed a commit
to llvmbot/llvm-project
that referenced
this issue
Aug 20, 2024
d469794 was fixing an issue with triggering vtable instantiations, but it accidentally introduced infinite recursion when the type to be checked is the same as the type used in a base specifier or field declaration. Fixes llvm#104802 (cherry picked from commit 435cb0d)
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"
confirmed
Verified by a second party
crash-on-invalid
regression:19
Regression in 19 release
$ cat prep.cc
The text was updated successfully, but these errors were encountered: