[Issue 1558] New: properties on template type need parenthesis

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 9 02:50:49 PDT 2007


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 at users.sf.net
        ReportedBy: pop.atry at gmail.com


struct s(int n) {
}

int main() {

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

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

  return 0;

}


-- 



More information about the D.gnu mailing list