digitalmars.D.bugs - [Issue 18490] New: dspec_tester fails
- d-bugmail puremagic.com (28/28) Feb 22 2018 https://issues.dlang.org/show_bug.cgi?id=18490
https://issues.dlang.org/show_bug.cgi?id=18490 Issue ID: 18490 Summary: dspec_tester fails Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: normal Priority: P1 Component: tools Assignee: nobody puremagic.com Reporter: timothee.cour2 gmail.com see https://github.com/dlang/dlang.org/pull/2169#pullrequestreview-96041881 for context segfault on: + $(SPEC_RUNNABLE_EXAMPLE_RUN + --- + size_t fun(T...)(T t, string file = __FILE__) + { + import std.stdio; + writeln(file, " ", t); + return T.length; + } + assert(fun(1, "foo") == 2); // not 1 (IFTI) + assert(fun!int(1, "foo") == 1); // IFTI + --- --
Feb 22 2018