[Issue 4269] Regression(2.031): invalid type accepted if evaluated while errors are gagged

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 15 13:41:06 PDT 2010


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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
            Version|D2                          |D1 & D2


--- Comment #2 from Don <clugdbug at yahoo.com.au> 2010-06-15 13:41:05 PDT ---
Here's a test case which incorrectly compiles on D1.055 and later, but
generated an error on DMD1.053 and earlier.

static if(!is(typeof(A[0]))) pragma(msg, "A.sizeof doesn't compile!");

struct A {
    B foo(){} 
}

And this variation is ICE(glue.c) on 2.047, but generates wrong code on
2.031-2.046.

static if(!is(typeof(A[0]))) pragma(msg, "A.sizeof doesn't compile!");
struct A {
    void foo(B 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