Closed
Description
The code that generates the special DWARF field names for size-optimized enums is broken for a while now. PRs keep getting opened to "fix" this on the pretty printer side but that's not possible because the debuginfo does not contain the necessary information for the pretty printer to correctly decode a given value. See #51777 (comment) for an example and some discussion on a possible fix.
This will be fixed eventually when enums get a proper representation in DWARF. Meanwhile, it's unclear how much of a priority fixing this is.
cc @tromey