Open jabraham17 opened 1 year ago
The issue here is that we skip normalizing the definitions of enum constant values. I tried performing normalization, but this does not seem to go well (though, I may have just not tried hard enough! 😄 ). Another thought was to try skipping the assertion for normalization if defining an EnumSymbol, but that seemed like a needless special case.
Summary of Problem
Using a non-param value as the initializer for an enum value is an error, but doing so with a more complicated expression is not checked and results in an internal error.
Steps to Reproduce
Source Code:
Compile command:
chpl test.chpl
Output
Configuration Information
chpl --version
:$CHPL_HOME/util/printchplenv --anonymize
:gcc --version
orclang --version
: