Thread overview
[Issue 369] New: "immediate"-function types allowed as part of delegate/function types.
Sep 26, 2006
d-bugmail
Oct 05, 2006
d-bugmail
Oct 06, 2006
Thomas Kuehne
September 26, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=369

           Summary: "immediate"-function types allowed as part of
                    delegate/function types.
           Product: D
           Version: 0.167
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid, ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: brunodomedeiros+bugz@gmail.com


Similarly to 368, "immediate"-function types allowed as part of delegate/function types :

--------
void func() { }

int delegate(typeof(func)) dg;
int function(typeof(func)) fp;
typeof(func) delegate() dg2;
typeof(func) function() fp2;

void test() {
    dg2(); // ICE: Internal error: ..\ztc\cod1.c 2331
}
----


-- 

October 05, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=369


bugzilla@digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from bugzilla@digitalmars.com  2006-10-04 19:58 -------
Fixed DMD 0.168


-- 

October 06, 2006
d-bugmail@puremagic.com schrieb am 2006-09-26:
> http://d.puremagic.com/issues/show_bug.cgi?id=369

> Similarly to 368, "immediate"-function types allowed as part of delegate/function types :
>
> --------
> void func() { }
>
> int delegate(typeof(func)) dg;
> int function(typeof(func)) fp;
> typeof(func) delegate() dg2;
> typeof(func) function() fp2;
>
> void test() {
>     dg2(); // ICE: Internal error: ..\ztc\cod1.c 2331
> }
> ----

Added to DStress as http://dstress.kuehne.cn/nocompile/t/typeof_12_C.d http://dstress.kuehne.cn/nocompile/t/typeof_12_D.d

Thomas