Thread overview
Regarding the -vgc switch
Mar 28, 2014
bearophile
Mar 28, 2014
Kagamin
Mar 28, 2014
bearophile
March 28, 2014
I don't fully understand the recently introduced -vgc compiler switch. Is it expected for this code to not cause any warnings?


void main() {
    import std.bitmanip;
    BitArray a;
    a.length = 100;
}


Bye,
bearophile
March 28, 2014
The phobos code is precompiled, so the compiler doesn't diagnose it.
March 28, 2014
Kagamin:

> The phobos code is precompiled, so the compiler doesn't diagnose it.

Right. So only allocations of templaes of Phobos can be detected.

Bye,
bearophile