[Issue 15498] Unhelpful error message "destructors, postblits and invariants are not allowed in overlapping fields"
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Mar 28 07:41:54 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=15498
--- Comment #6 from Steven Schveighoffer <schveiguy at yahoo.com> ---
(In reply to Kenji Hara from comment #5)
> If there's no unions (overlapped fields), the error print would be a
> compiler bug.
>
> Honestly I cannot say anything until I see what the "some stuff" actually is.
I would also like to see what is in there, but even without that, the error
report is at least misleading.
Note the error once again:
Error: struct libep.componentdesc.ComponentDesc destructors, postblits and
invariants are not allowed in overlapping fields info and baseClass
And the struct ComponentDesc:
struct ComponentDesc
{
ComponentInfo info;
SharedString baseClass;
}
Is there any way to define ComponentInfo or SharedString such that info and
baseClass overlap? I wouldn't think so.
--
More information about the Digitalmars-d-bugs
mailing list