[Issue 858] Forward reference to struct inside class crashes the compiler

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 14 05:04:02 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=858


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug at yahoo.com.au
         Resolution|                            |FIXED




--- Comment #4 from Don <clugdbug at yahoo.com.au>  2009-05-14 05:04:02 PDT ---
No longer segfaults in DMD2.040 and 1.030. Still doesn't compile (generates a
forward reference error).
However, the original bug is fixed.
TEST CASE:
---
class A{
    class B {
        S s;
    }
    void foo() {
        B b = new B();
    }
}
struct S {}
---
ice.d(6): Error: forward reference to B

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


More information about the Digitalmars-d-bugs mailing list