You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The constant is only attached if the constexpr member is instantiated before the type is created in the DWARF.
We have solutions for type information that address these kinds of ordering problems (if we emit a declaration for a type, but later on that type is defined, we can emit that definition instead of the declaration we initially created) - it'd probably be good to do something similar for static constexpr members to reduce this kind of ordering dependence.
(huh, GCC doesn't produce any debug info for "m" in either case above... ( https://godbolt.org/z/z6sxPv6nf ) - I guess it only produces debug info if the variable has a real definition/storage is created for it... huh)