[Issue 2849] Length of a local immutable(char[]) cannot be a template	value argument
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Mar 15 22:40:04 PDT 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=2849
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2012-03-15 22:40:16 PDT ---
It's because it doesn't try to const fold it. In this case,
the init value is constant, so it could possibly work. In other cases,
it could be initialized from something non-constant (eg, a function
parameter). Regardless, it should say that it's not constant, rather
than just that it's not a valid template parameter.
-- 
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