[Issue 5026] ICE(expression.c) Incomplete mixin expression + char[]	to char assignment
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Oct 18 13:30:26 PDT 2010
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=5026
Don <clugdbug at yahoo.com.au> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|D1                          |D1 & D2
--- Comment #2 from Don <clugdbug at yahoo.com.au> 2010-10-18 13:29:49 PDT ---
And a couple of test cases. 
string bug5026()
{
    char[0] code;
    code[0] = "0";
    return "0";
}
template compiles(int T)
{
   bool compiles = true;
}
// ICE(glue.c)
static assert(!is(typeof(compiles!(mixin(bug5026())))));
// ICE(expression.c)
static assert(!is(typeof(mixin(bug5026()))));
// This example is an accepts-valid bug
string bug5026c()
{
    char[0] code;
    code[0] = 7;
    return "0";
}
static assert(!is(typeof(mixin(bug5026c()))));
-- 
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