Today's compiler error message

IchorDev zxinsworld at gmail.com
Wed Jul 12 21:52:08 UTC 2023


On Wednesday, 12 July 2023 at 16:00:34 UTC, Dennis wrote:
> On Wednesday, 12 July 2023 at 15:53:39 UTC, IchorDev wrote:
>> DMD and LDC2, however, decided that the real problem was an 
>> unmarked lambda placed within a mixin statement at 
>> module-scope:
>
>
> Do you have a test case that reproduces it? I tried:
>
> ```D
> alias y = mixin("``");
> ```
>
> But that gives the "alias `y` cannot alias an expression `""`" 
> error.

No, I simply don’t have the time for that. Compiler oddities tend 
to be very painful to narrow down.
The code is more like…
mixin(“alias y = `”~someFn.mangleof~”`;”);
mixin(“someOtherFn(…, y);”);

But I doubt that’s enough to recreate it either.


More information about the Digitalmars-d mailing list