[Issue 339] Alias of function pointer type cannot be forward referenced

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 25 07:29:08 PDT 2009


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


Gide Nwawudu <gide at nwawudu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
                 CC|                            |gide at nwawudu.com




--- Comment #1 from Gide Nwawudu <gide at nwawudu.com>  2009-05-25 07:29:07 PDT ---
Code crashes D2.

test.d
------
uint data;

void benchmark(Algorithm alg) {
    alg(data);
}

alias void function(uint) Algorithm;

C:> dmd test.d
Assertion failure: 't->deco' on line 1125 in file 'mtype.c'

-- 
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