www.digitalmars.com         C & C++   DMDScript  

D - Compiler bug in template const variables

Hi,

    This is very simple, the compiler crashes on this program.


module bug3;
template Bug(T) {
    public const T[] empty = [];
}
int main() {
    alias instance Bug(int) bug;
    return 0;
}


    Best regards,
    Daniel Yokomiso.

"I'm not saying there should be a capital punishment for stupidity, but why
don't we just take the safety labels off of everything and let the problem
solve itself?"




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.474 / Virus Database: 272 - Release Date: 18/4/2003
Apr 21 2003