[Issue 485] New: struct sizeof not possible from type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 7 16:50:56 PST 2006


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

           Summary: struct sizeof not possible from type
           Product: D
           Version: 0.173
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: benoit at tionex.de


If a struct is defined in module
module s;
struct S{
  int i;
}
int f(){
  return S.sizeof; // OK
}
in the other module
module t;
import s;
int g(){
  return S.sizeof; // error
}


-- 




More information about the Digitalmars-d-bugs mailing list