[Issue 1577] static assert for testing char with char is not evaluatable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 6 00:03:35 PDT 2009


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


clugdbug at yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #1 from clugdbug at yahoo.com.au  2009-04-06 02:03 -------
The behaviour is correct. 'result' is not a compile-time constant.
In D1, the following code works:

const char[] result=`1234123`;
static assert(result[0]=='1');


-- 



More information about the Digitalmars-d-bugs mailing list