consteval union constants result in IR containing incorrectly-typed stores #46711
Labels
bugzilla
Issues migrated from bugzilla
c++20
clang:to-be-triaged
Should not be used for new issues
consteval
C++20 consteval
Extended Description
Works in clang-10.0.1 but not in clang trunk.
code example:
https://godbolt.org/z/j4bGxx
Furthermore this slight variation works:
https://godbolt.org/z/beMvE9
The text was updated successfully, but these errors were encountered: