[Issue 24223] __traits(initSymbol) should work for enum types

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 4 15:05:04 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=24223

Paul Backus <snarwin+bugzilla at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #2 from Paul Backus <snarwin+bugzilla at gmail.com> ---
>From kinke on the dlang Slack:

> Yeah just checked - no regular init symbol. The TypeInfo.init is a slice to
> an ad-hoc constant emitted together with the TypeInfo; it's not guaranteed to
> be available if the TypeInfo is never referenced, and doesn't have a
> well-defined mangle.

So, it seems like this is probably not feasible. Closing as WONTFIX.

--


More information about the Digitalmars-d-bugs mailing list