digitalmars.D.bugs - [Issue 296] New: Template constant can not be used as size of static array.
- d-bugmail puremagic.com (18/18) Aug 19 2006 http://d.puremagic.com/issues/show_bug.cgi?id=296
- Thomas Kuehne (12/17) Aug 26 2006 -----BEGIN PGP SIGNED MESSAGE-----
- d-bugmail puremagic.com (9/9) Sep 19 2006 http://d.puremagic.com/issues/show_bug.cgi?id=296
http://d.puremagic.com/issues/show_bug.cgi?id=296
           Summary: Template constant can not be used as size of static
                    array.
           Product: D
           Version: 0.164
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: oskar.linde gmail.com
template Count() { const Count = 5; }
int[Count!()] x; 
// Error: Count!() is used as a type
// can't have associative array key of void
-- 
 Aug 19 2006
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 d-bugmail puremagic.com schrieb am 2006-08-19:http://d.puremagic.com/issues/show_bug.cgi?id=296template Count() { const Count = 5; } int[Count!()] x; // Error: Count!() is used as a type // can't have associative array key of voidAdded to DStress as http://dstress.kuehne.cn/compile/t/template_43_A.d http://dstress.kuehne.cn/compile/t/template_43_B.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFE8DOdLK5blCcjpWoRAvzWAJ9eEfwxqeH0GCtqM1R79Ua2P1KR2ACfTVam uzQZRODhjP3s1toahniaGx8= =isqS -----END PGP SIGNATURE-----
 Aug 26 2006
http://d.puremagic.com/issues/show_bug.cgi?id=296
bugzilla digitalmars.com changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
Fixed in DMC 0.167.
-- 
 Sep 19 2006








 
  
  
 
 Thomas Kuehne <thomas-dloop kuehne.cn>
 Thomas Kuehne <thomas-dloop kuehne.cn> 