aligned struct field weirdness

realhet real_het at hotmail.com
Tue Jun 18 09:10:28 UTC 2024


On Tuesday, 18 June 2024 at 02:26:00 UTC, Steven Schveighoffer 
wrote:
> All the code you posted here looks fine to me. It compiles and 
> runs fine on run.dlang.io (even with the `version(none)` 
> changed to `version(all)`, or using `scoped!B`).

Thank You for checking.

Also to add to the weirdness, this happens only with release 
build.

I tried to narrow the problem, but I wasn't able, but I guess 
I've found another solution: There is a part in my framework 
which works with LDC2 1.28, but that's 'illegal' with later 
versions.
That's why I'm stuck in the past, but now it adds more motivation 
to catch up with the latest version.

That part declares an enum, whose members have UDA's pointing to 
the enum's members.
With 2 step parsing it is valid, but later compiler versions 
don't like this.
It's a quite big state machine graph, I have to refactor this to 
eliminate this self-referencing to catch up with the latest 
compiler.

So now I have fixes that seem to be working, and soon with the 
latest compiler I will check it again, and hopefully the fixes 
aren't needed anymore.



More information about the Digitalmars-d-learn mailing list