www.digitalmars.com         C & C++   DMDScript  

D - Possible bug with associative arrays

reply "Steve Adams" <adamss ascinet.com> writes:
In file t2.d:

struct s {
  uint  v;
  uint  x;
}

char[][s] h1;

int main()
{
  s S;
  h1[S] = "hello";
  return( 0 );
}

gives the following when being built

[c:\test]dmd t2.d
C:\dmd\bin\..\..\dm\bin\link.exe t2,,,user32+kernel32/noi;
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

t2.obj(t2)
 Error 42: Symbol Undefined __init_TypeInfo_S4t2_s
--- errorlevel 1
Mar 19 2003
parent Burton Radons <loth users.sourceforge.net> writes:
Steve Adams wrote:
 In file t2.d:
 
 struct s {
   uint  v;
   uint  x;
 }
 
 char[][s] h1;
 
 gives the following when being built
 
  Error 42: Symbol Undefined __init_TypeInfo_S4t2_s
This is due to limitations in the TypeInfo model used in DMD. It'll be amended in the future.
Mar 19 2003