[Issue 5686] class template error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 3 06:53:06 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5686
--- Comment #5 from changlon <changlon at gmail.com> 2011-03-03 06:50:13 PST ---
-----------------------------------
ptrdiff_t Test1( string file = __FILE__, ptrdiff_t line = __LINE__)(){
pragma(msg, line.stringof);
return line ;
}
class Test2(string name, string file = __FILE__, ptrdiff_t line = __LINE__){
pragma(msg, line.stringof);
}
void main(){
auto test1 = Test1();
auto test2 = new Test2!("test") ;
}
---------------------------------------
compile this the dmd print 11, 7. dmd should print 11, 12 .
--
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