ICE when combining const (fn) and unions #47788
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This code posted by @sfleischman105 in #24111 currently compiles:
With this suspicious (and wrong?) warning:
However, trying to use the
const fn
by uncommenting the line inmain
causes an ICE:The text was updated successfully, but these errors were encountered: