www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 402] New: compiler crash with mixin and forward reference

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

           Summary: compiler crash with mixin and forward reference
           Product: D
           Version: 0.168
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: digitalmars-com baysmith.com


The following may be incorrect code, but it crashes the compiler.

dmd -c issue.d

***** Crash ***** ----- issue.d ----- template Foo(alias b) { int a() { return b; } } void main() { mixin Foo!(y) y; } --
Oct 05 2006
next sibling parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail puremagic.com schrieb am 2006-10-06:
 http://d.puremagic.com/issues/show_bug.cgi?id=402

 The following may be incorrect code, but it crashes the compiler.

dmd -c issue.d

***** Crash ***** ----- issue.d ----- template Foo(alias b) { int a() { return b; } } void main() { mixin Foo!(y) y; }

Added to DStress as http://dstress.kuehne.cn/nocompile/a/alias_39_A.d http://dstress.kuehne.cn/nocompile/a/alias_39_B.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFJgd8LK5blCcjpWoRAqsiAJ4k1BmBv/BEl95EbKk1Cp1uCvkKiACfX+Gy 5sr7FO3j1L4vAqhazLtL+Ik= =/INU -----END PGP SIGNATURE-----
Oct 06 2006
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=402


bugzilla digitalmars.com changed:

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




------- Comment #2 from bugzilla digitalmars.com  2006-10-10 03:31 -------
Fixed DMD 0.169


-- 
Oct 10 2006