www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 485] New: struct sizeof not possible from type

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: benoit 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
}


-- 
Nov 07 2006
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=485


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME





Not reproducible with DMD 0.174.


-- 
Nov 24 2006