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




------- Comment #1 from bugzilla digitalmars.com  2006-11-24 20:06 -------
Not reproducible with DMD 0.174.


-- 
Nov 24 2006