-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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, trunk, c++11] Clang rejects NTTP defaulted value invoking static constexpr member function within class #62596
Comments
@llvm/issue-subscribers-clang-frontend |
In llvm-project/clang/lib/AST/ExprConstant.cpp Lines 7802 to 7808 in 231ef21
Body and Definition are nullptr , so the following CheckConstexprFunction diagnoses.
I don't know enough about the parsing here, are the bodies of static member functions only available later? |
That feels similar to #62224, although |
https://reviews.llvm.org/D150108 that I was originally intending for #62224 helps here as well. |
Given the following C++11 code:
GCC, MSVC, ICC, and NVC++ all compile this code successfully, but Clang (trunk) produces the following diagnostic output:
Corresponding CE link: https://godbolt.org/z/4Md1b5o8r
The text was updated successfully, but these errors were encountered: