www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Issue 1558] New: properties on template type need parenthesis

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

           Summary: properties on template type need parenthesis
           Product: DGCC aka GDC
           Version: 0.24
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn users.sf.net
        ReportedBy: pop.atry gmail.com


struct s(int n) {
}

int main() {

  size_t p1 = s!(0).sizeof; // error

  size_t p2 = (s!(0)).sizeof; // OK

  return 0;

}


-- 
Oct 09 2007