www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - symbol resolution bug in "with" block (dmd 0.131 win32)

reply zwang <nehzgnaw gmail.com> writes:
import std.stdio;

class C{
     import std.stdio; //if this line is removed, the code compiles.
}

void main(){
     with(new C)
         std.stdio.writef("");
}
Sep 17 2005
parent =?ISO-8859-1?Q?Thomas_K=FChne?= <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

zwang schrieb:

 import std.stdio;
 
 class C{
     import std.stdio; //if this line is removed, the code compiles.
 }
 
 void main(){
     with(new C)
         std.stdio.writef("");
 }

Added to DStress as http://dstress.kuehne.cn/run/i/import_08_A.d http://dstress.kuehne.cn/run/i/import_08_B.d http://dstress.kuehne.cn/run/i/import_08_C.d (http://dstress.kuehne.cn/addon/i/import_08_Z.d) Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFDLBVE3w+/yD4P9tIRAgY7AJ90dgO8L1PzEMq37sZgsPvgzbM4RgCggAId v5piXUwcZDuHzlqQgysF7t8= =0f0D -----END PGP SIGNATURE-----
Sep 17 2005