[Issue 22347] New: a preliminary pass before dsymbolSemantic() should be used to compile all the MixinDeclarations of a module

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 2 10:06:47 UTC 2021


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

          Issue ID: 22347
           Summary: a preliminary pass before dsymbolSemantic() should be
                    used to compile all the MixinDeclarations of a module
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: b2.temp at gmx.com

At first glance that would allow code like

```d
struct Ar { Br b; ubyte a; }
mixin(q{struct Br { ubyte b; }});
```

to compile successfully.

--


More information about the Digitalmars-d-bugs mailing list