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 segfaults with complicated constexpr code #12670
Comments
Smaller testcase: struct S { While instantiating f, we mark g as referenced and try to instantiate it. While instantiating g, we mark f as referenced, don't notice we're already in the middle of instantiating it, and try to instantiate it again. We should accept this code, but should reject similar code where the mutually recursive calls between f and g occur in locations where a constant expression is required. |
*** Bug llvm/llvm-bugzilla-archive#13085 has been marked as a duplicate of this bug. *** |
Fixed in r280190. |
mentioned in issue llvm/llvm-bugzilla-archive#13085 |
mentioned in issue llvm/llvm-bugzilla-archive#30261 |
mentioned in issue llvm/llvm-bugzilla-archive#30301 |
Extended Description
clang r153011 segfaults without assertion when compiling the attached program using libc++ r152981.
The text was updated successfully, but these errors were encountered: