We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 incorrectly rejects the following because it fails to deduce the correct size for the array/initializer list
static constexpr auto std_to_char_array = std::to_array<char>({ #embed __FILE__ , '\0' }); static constexpr auto initializer_list = std::initializer_list<char>{ #embed __FILE__ , '\0' };
https://godbolt.org/z/4oj8Tr4d5
(From reddit)
The text was updated successfully, but these errors were encountered:
@Fznamznon
Sorry, something went wrong.
@llvm/issue-subscribers-clang-frontend
Author: cor3ntin (cor3ntin)
static constexpr auto std_to_char_array = std::to_array<char>({ #embed FILE , '\0' }); static constexpr auto initializer_list = std::initializer_list<char>{ #embed FILE , '\0' };
https://godbolt.org/z/4oj8Tr4d5 ([From reddit](https://www.reddit.com/r/cpp/comments/1hxdv17/experimenting_with_embed/)) </details>
@llvm/issue-subscribers-c-1
Note I filed a bug for GCC here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118390 .
No branches or pull requests
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: