[Issue 24270] Pointer to Nullable of recursive struct

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 11 05:08:28 UTC 2023


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

Basile-z <b2.temp at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com

--- Comment #4 from Basile-z <b2.temp at gmx.com> ---
(In reply to Nick Treleaven from comment #3)
> Just to note that this compiles fine:
> 
> struct S(T)
> {
>     int i;
>     T m;
> }
> struct R {
>     int i;
>     S!(R)* m;
> }

The problem shows the tip of its nose when performing static introspection and
while the decl sema of the struct is not finished. Just start doing some
`__traits` things and you'll get some similar errors.

Note that actually I think the error message is correct (and this report is
likely a duplicate BTW, already seen that `hasIndirection` issue in the past)

--


More information about the Digitalmars-d-bugs mailing list