-
Notifications
You must be signed in to change notification settings - Fork 13.4k
#embed interacts poorly with template argument deduction and initializer lists #122306
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
Comments
@llvm/issue-subscribers-clang-frontend Author: cor3ntin (cor3ntin)
Clang incorrectly rejects the following because it fails to deduce the correct size for the array/initializer list
```cpp
static constexpr auto std_to_char_array = std::to_array<char>({
|
@llvm/issue-subscribers-c-1 Author: cor3ntin (cor3ntin)
Clang incorrectly rejects the following because it fails to deduce the correct size for the array/initializer list
```cpp
static constexpr auto std_to_char_array = std::to_array<char>({
|
Note I filed a bug for GCC here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118390 . |
Sometimes number of expressions in InitListExpr is used for template argument deduction. So, in these cases we need to pay attention to real number of expressions including expanded #embed data. Fixes llvm#122306
…te arguments (#128890) Sometimes number of expressions in InitListExpr is used for template argument deduction. So, in these cases we need to pay attention to real number of expressions including expanded #embed data. Fixes llvm/llvm-project#122306
llvm#128890) Sometimes number of expressions in InitListExpr is used for template argument deduction. So, in these cases we need to pay attention to real number of expressions including expanded #embed data. Fixes llvm#122306
Clang incorrectly rejects the following because it fails to deduce the correct size for the array/initializer list
https://godbolt.org/z/4oj8Tr4d5
(From reddit)
The text was updated successfully, but these errors were encountered: