[Issue 24273] Circular reference error flagged in valid code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 7 17:14:33 UTC 2023


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

Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dkorpel at live.nl
           Hardware|x86                         |All
                 OS|Windows                     |All

--- Comment #1 from Dennis <dkorpel at live.nl> ---
Reduced example:

```D
int XVar;

struct Mst
{
    typeof(XVar) XVar;
}
```

The issue seems that `typeof(XVar)` is resolved after adding `XVar` to the
symbol table of `Mst`. I wonder if that's done deliberately to make something
else work.

--


More information about the Digitalmars-d-bugs mailing list