dmd 2.054 segfaults

Brad Roberts braddr at puremagic.com
Tue Jul 12 10:07:16 PDT 2011


Does dmd crash or does the resulting app?  If the former, then please file a bug report.  The validity of the code isn't relevant.

On Jul 12, 2011, at 9:41 AM, d coder <dlang.coder at gmail.com> wrote:

> Also found that if I take out the "size_t N" template parameter, it works fine with dmd-2.054 too. So the following test code compiles and runs just fine:
> 
> import std.stdio;
> struct Foo(IF/*, size_t N*/) {}
> interface Bar {}
> void main() {
>   void printFoo(T: Foo!(IF/*, N*/), IF/*, size_t N*/)(T foo)
>     if(is(IF == interface)) {
>     writeln("Type: ", T.stringof);
>   }
>   Foo!(Bar/*, 1*/) foo;
>   printFoo(foo);
> }
> 


More information about the Digitalmars-d mailing list