Instantiation of nested structs should be allowed outside their parent scope

Stanislav Blinov stanislav.blinov at gmail.com
Tue Nov 9 23:50:02 UTC 2021


On Tuesday, 9 November 2021 at 22:20:35 UTC, Timon Gehr wrote:
> On 09.11.21 22:45, Stanislav Blinov wrote:
>> 
>> That won't help.
>
> It will help in some cases. What will help with the specific 
> issue you have shown was already explained in the first part of 
> my post. I.e., the compiler needs fixing.

Yes, it does :) But I think instead of "fixing" that error 
message it simply needs to be thrown out. It's not doing anything 
useful, and plenty harmful.

> https://issues.dlang.org/show_bug.cgi?id=22499
>
> Of course, this was just one example. Again: I am pretty sure 
> that if you explain other pain points we will find more bugs in 
> the compiler.

I believe that would be the same as

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

There are also some other nested-related things.

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




More information about the Digitalmars-d mailing list