www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1333] New: -inline ICE: passing an array element to an inner class's constructor in a nested function, all in a class or struct

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

           Summary: -inline ICE: passing an array element to an inner
                    class's constructor in a nested function, all in a class
                    or struct
           Product: D
           Version: 1.018
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: deewiant gmail.com


Gotta love these "summaries".

// or class Outer
struct Outer {
        class Inner {
                this(int) {}
        }

        int[] a;

        void f() {
                void nested() {
                        new Inner(a[0]);
                }
                nested();
        }
}

The above code compiles fine normally, but with -inline, DMD gives "Assertion
failure: 'ids->vthis' on line 505 in file 'inline.c'".


-- 
Jul 11 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1333


bugzilla digitalmars.com changed:

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





Fixed DMD 1.019 and 2.003


-- 
Jul 30 2007