[Issue 5686] class template error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 3 00:30:04 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5686



--- Comment #1 from changlon <changlon at gmail.com> 2011-03-03 00:27:11 PST ---
update test case:
-----------------
class Test2(string name,  string file = __FILE__, ptrdiff_t line = __LINE__){
    static assert( line != __LINE__ -1 );

    ptrdiff_t test( string file = __FILE__, ptrdiff_t line = __LINE__)(){
        static assert( line != __LINE__ -1 );
        return line ;
    }
}

void main(){
    auto test2 = new Test2!("test") ;
    test2.test ;
}
-------------------------------

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list