Merge remote-tracking branch 'origin/stable' into merge_stable

Conflicts:
	compiler/src/build.d
	compiler/src/dmd/dcast.d
	compiler/src/dmd/dtemplate.d
	compiler/src/dmd/expressionsem.d
This commit is contained in:
Martin Kinkelin 2024-11-16 16:09:17 +01:00
commit 72b2fbe64a
14 changed files with 108 additions and 36 deletions

View file

@ -5,9 +5,14 @@ class Foo
{
}
shared Foo toLoad;
void oops()
{
auto f0 = new shared Foo;
auto f1 = new shared Foo;
atomicStore(f0, f1);
// https://issues.dlang.org/show_bug.cgi?id=24846
shared(Foo) f2 = atomicLoad(toLoad);
}