www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Assertion failure: parse.c 4119 - IsExpression syntax error

reply Stewart Gordon <smjg_1998 yahoo.com> writes:
Using DMD 0.127, Windows 98SE.

If after an 'is' a '(' is expected, but some other token is found 
instead, DMD outputs an assertion failure and then hangs.

----------
void main() {
     is;
}
----------
D:\My Documents\Programming\D\Tests\af_parse4119.d(2): (type identifier 
: specialization) expected following is
Assertion failure: 'e' on line 4119 in file 'parse.c'
----------

Stewart.

-- 
My e-mail is valid but not my primary mailbox.  Please keep replies on 
the 'group where everyone may benefit.
Jun 22 2005
parent Thomas Kuehne <thomas-dloop kuehne.this-is-spam.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stewart Gordon schrieb am Wed, 22 Jun 2005 10:24:37 +0100:
 Using DMD 0.127, Windows 98SE.

 If after an 'is' a '(' is expected, but some other token is found 
 instead, DMD outputs an assertion failure and then hangs.

 ----------
 void main() {
      is;
 }
 ----------
 D:\My Documents\Programming\D\Tests\af_parse4119.d(2): (type identifier 
: specialization) expected following is
 Assertion failure: 'e' on line 4119 in file 'parse.c'
 ----------

Added to DStress as http://dstress.kuehne.cn/nocompile/i/is_01_A.d http://dstress.kuehne.cn/nocompile/i/is_01_B.d http://dstress.kuehne.cn/nocompile/i/is_01_C.d http://dstress.kuehne.cn/nocompile/i/is_01_D.d http://dstress.kuehne.cn/nocompile/i/is_01_E.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCuVBj3w+/yD4P9tIRAmN+AJoCWN1c7LqblFDnjxslqoC8N84Q2QCfVJrc WPP2fr3XMlLNV88kBaFQHOM= =qv6C -----END PGP SIGNATURE-----
Jun 22 2005