www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 369] New: "immediate"-function types allowed as part of delegate/function types.

reply d-bugmail puremagic.com writes:
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
}
----


-- 
Sep 26 2006
next sibling parent d-bugmail puremagic.com writes:
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


-- 
Oct 04 2006
prev sibling parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 -----BEGIN PGP SIGNATURE----- iD8DBQFFJgHALK5blCcjpWoRAjfKAJ46F8HlcAOrZ6Yajgk05kOWmoRZ4ACgqpQ4 wLjvPWrx3iwUJxQkTGUqQYc= =AO23 -----END PGP SIGNATURE-----
Oct 06 2006