[Issue 9040] Assertion `precedence[e->op] != PREC_zero' failed instantiating anonymous class at compile time

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 17 08:32:34 PST 2012


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #1 from bearophile_hugs at eml.cc 2012-11-17 08:32:33 PST ---
On the latest dmd 2.061head this program:


class BaseClass {}
void main() {
    BaseClass instance = new class BaseClass {};
    static BaseClass staticAnonInstance = new class BaseClass {};
}


Gives me (32 bit, Windows):

test.d(4): Error: non-constant expression cast(BaseClass)¨6U

The error message doesn't look good.

-- 
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