[Issue 5996] [CTFE] Undefined function call in auto return function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 5 17:17:19 PDT 2011


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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|diagnostic                  |ice-on-invalid-code
                 CC|                            |clugdbug at yahoo.com.au


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2011-07-05 17:12:13 PDT ---
Reduced test case:
---------
auto bug5996() {
    if (anyOldGarbage) {}
    return 2;
}
enum uint h5996 = bug5996();
static assert(h5996 == 2);

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