www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 354] New: Internal error: e2ir.c 772 with bad template use

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

           Summary: Internal error: e2ir.c 772 with bad template use
           Product: D
           Version: 0.166
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: chris dprogramming.com


import std.stdio;

template GetNumber()
{
        const int GetNumber = 0;
}

void main()
{
        writefln(GetNumber);
}


dmd test

Internal error: e2ir.c 772 --
Sep 16 2006
next sibling parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail puremagic.com schrieb am 2006-09-17:
 http://d.puremagic.com/issues/show_bug.cgi?id=354

 import std.stdio;

 template GetNumber()
 {
         const int GetNumber = 0;
 }

 void main()
 {
         writefln(GetNumber);
 }


dmd test

Internal error: e2ir.c 772

Added to DStress as http://dstress.kuehne.cn/run/b/bug_e2ir_772_A.d http://dstress.kuehne.cn/run/b/bug_e2ir_772_B.d http://dstress.kuehne.cn/run/b/bug_e2ir_772_C.d http://dstress.kuehne.cn/run/b/bug_e2ir_772_D.d http://dstress.kuehne.cn/run/b/bug_e2ir_772_E.d http://dstress.kuehne.cn/run/b/bug_e2ir_772_F.d http://dstress.kuehne.cn/compile/b/bug_e2ir_772_G.d http://dstress.kuehne.cn/compile/b/bug_e2ir_772_H.d http://dstress.kuehne.cn/compile/b/bug_e2ir_772_I.d http://dstress.kuehne.cn/compile/b/bug_e2ir_772_J.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFEY0dLK5blCcjpWoRAhDdAJ9c98AlxsAy8mVccV/YHuRsigKTswCgiy1r bpDn9L3uFDNw9Pw0SPcjgqY= =Xt65 -----END PGP SIGNATURE-----
Sep 20 2006
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=354


bugzilla digitalmars.com changed:

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




------- Comment #2 from bugzilla digitalmars.com  2006-11-25 03:49 -------
Fixed DMD 0.175


-- 
Nov 25 2006