www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2870] New: Recursive mixin hangs compiler

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

           Summary: Recursive mixin hangs compiler
           Product: D
           Version: 1.042
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: clugdbug yahoo.com.au


This is from dstress test case template_16_A.d.
This should generate a "recursive template expansion" error, like related
errors do, but it doesn't; it compiles forever.

----- 
template Template(int i) {
   mixin Template!(i+1);
}       
mixin Template!(0);


-- 
Apr 21 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2870


Don <clugdbug yahoo.com.au> changed:

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





Fixed DMD2.030 and 1.045

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 14 2009