www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 750] New: Recursive typeof in function declaration crashes DMD

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=750

           Summary: Recursive typeof in function declaration crashes DMD
           Product: D
           Version: 0.178
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: dvdfrdmn users.sf.net


--------
void test(typeof(&test) p) { }
void main() { test(); }
--------

Note that the test case for issue 745, which does have the 'main', compiles
without errors.

Another issue(?):  If 'main' is removed, the mangled name of 'test' contains a
' '.  Is this valid?


-- 
Dec 26 2006
next sibling parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail puremagic.com schrieb am 2006-12-26:
 http://d.puremagic.com/issues/show_bug.cgi?id=750
 --------
 void test(typeof(&test) p) { }
 void main() { test(); }
 --------

 Note that the test case for issue 745, which does have the 'main', compiles
 without errors.

 Another issue(?):  If 'main' is removed, the mangled name of 'test' contains a
 ' '.  Is this valid?
Added to DStress as http://dstress.kuehne.cn/run/t/typeof_11_C.d http://dstress.kuehne.cn/nocompile/t/typeof_11_D.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFklRTLK5blCcjpWoRAgpcAKCEgSOaUypsHUrfaf+Ii7vOC2TSTACfamJo mlG0lKjpNhM7XV9hVFPxaKU= =jSly -----END PGP SIGNATURE-----
Dec 27 2006
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=750


bugzilla digitalmars.com changed:

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





Fixed DMD 1.00


-- 
Jan 03 2007