www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - visibility bug?

reply David Medlock <noone nowhere.com> writes:
module visibility;

public:

class A(T)
{
   private A   next;
}

alias A!(B)   AB;

class B
{
   AB    head;

   void add( AB    var )
   {
     var.next = head;
     head = var;
   }
}

Error (DMD 0.131,Windows XP):
---------- Capture Output ----------
 "C:\dmd\bin\dmd.exe" -debug -c "E:\proj\temp\visibility.d"

not accessible
 Terminated with exit code 1.

A(T).next should be visible since it's in the same module. -DavidM
Sep 22 2005
parent =?ISO-8859-1?Q?Thomas_K=FChne?= <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Medlock schrieb:

 module visibility;
 
 public:
 
 class A(T)
 {
   private A   next;
 }
 
 alias A!(B)   AB;
 
 class B
 {
   AB    head;
 
   void add( AB    var )
   {
     var.next = head;
     head = var;
   }
 }
 
 Error (DMD 0.131,Windows XP):
 ---------- Capture Output ----------
 "C:\dmd\bin\dmd.exe" -debug -c "E:\proj\temp\visibility.d"

not accessible
 Terminated with exit code 1.

A(T).next should be visible since it's in the same module.

Known: http://dstress.kuehne.cn/run/private_04.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFDMtP63w+/yD4P9tIRAoSZAJ9oWe7R8bLUpG3es5YNK/NhRPdUjACgpOnm 02bHKuRbP1I+0oTdmLi0bmU= =q2Mg -----END PGP SIGNATURE-----
Sep 22 2005