||Variant parts without a discriminant
Section 5.7.10, pg 123
I worked recently on adding variant part DWARF output to the Rust
compiler and LLVM. While doing so I found this text in 5.7.10:
If the variant part does not have a discriminant (tag field), the
variant part entry has a DW_AT_type attribute to represent the tag type.
I did not know how to interpret this. I searched and found a dwarf-discuss
thread touching on this topic, in particular this message:
.. which unfortunately merely expresses the same confusion that I have.
I suggest simply removing this paragraph from the standard.
Rust needs tagless variants, but I will file a separate issue for that.