This program fails to compile:
struct Foo {
int x;
}
extern(C)
int main(){
Foo fa, fb;
int x = fa == fb;
Foo[2] a, b;
x += a == b; // Error: expression `a == b` uses the GC and cannot be used with switch `-betterC`
return x;
}
This should just work, and the idea that `a == b` uses the GC is ridiculous.
Comment #1 by robert.schadek — 2024-12-13T19:31:42Z