Fallback 'catch-all' template functions

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 2 20:15:49 PDT 2016


On 9/1/2016 10:49 AM, Timon Gehr wrote:
> The following causes an ICE (DMD segfaults).
>
> import std.stdio;
>
> int f(T)(T t) if(!__traits(compiles,.f!T)) {
>     return 0;
> }
> int f(T)(T t) if(!__traits(compiles,.f!T)) {
>     return 1;
> }
>
> void main(){
>     writeln(f(2));
> }

Please post seg faults to bugzilla.



More information about the Digitalmars-d mailing list