[Issue 7214] New: Change of template specialization resolution
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Jan  3 20:59:38 PST 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7214
           Summary: Change of template specialization resolution
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: dawg at dawgfoto.de
--- Comment #0 from dawg at dawgfoto.de 2012-01-03 20:59:36 PST ---
template isStaticArray(T : U[N], U, size_t N)
{
    enum bool isStaticArray = true;
}
template isStaticArray(T)
{
    enum bool isStaticArray = false;
}
struct Matrix
{
    float[3][3] _data;
    alias _data this;
}
static assert(!isStaticArray!Matrix); // isStaticArray!Matrix is true now
---------
This piece of code changed it's semantics with the recent
dmd changes. Just wanted to make sure that this is deliberate.
-- 
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