Visual D access violation when using static foreach

EntangledQuanta via Digitalmars-d-ide digitalmars-d-ide at puremagic.com
Fri Sep 1 12:45:18 PDT 2017


The following code, when building in Visual D outputs an access 
violation:

alias I(A...) = A;

interface Foo {
         static foreach(T; I!(int, float))
                 void set(T t); // define virt funcs for a list of 
types
}

class Ass : Foo {
         static foreach(T; I!(int, float))
                 void set(T t) {
                         // simplement
                 }
}

void main()
{

}

but when compiling from the command line directly works fine.



More information about the Digitalmars-d-ide mailing list