352 – Assertion failure: expression.c 753 - concatenating strings in a template calling another template

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 352 - Assertion failure: expression.c 753 - concatenating strings in a template calling another template
Summary: Assertion failure: expression.c 753 - concatenating strings in a template cal...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P2 normal
Assignee: Walter Bright
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
Reported: 2006年09月16日 18:14 UTC by Stewart Gordon
Modified: 2014年02月15日 13:20 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Stewart Gordon 2006年09月16日 18:14:28 UTC
----------
template Qwert(char[] yuiop) {
 const char[] Qwert = yuiop;
}
template Asdfg(char[] yuiop) {
 const char[] Asdfg = Qwert!(yuiop ~ "hjkl");
}
char[] zxcvb = Asdfg!(null);
----------
Assertion failure: '0' on line 753 in file 'expression.c'
----------
after which DMD hangs.
Comment 1 Thomas Kühne 2006年09月20日 14:20:50 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
d-bugmail@puremagic.com schrieb am 2006年09月16日:
> http://d.puremagic.com/issues/show_bug.cgi?id=352 
> template Qwert(char[] yuiop) {
> const char[] Qwert = yuiop;
> }
>
> template Asdfg(char[] yuiop) {
> const char[] Asdfg = Qwert!(yuiop ~ "hjkl");
> }
>
> char[] zxcvb = Asdfg!(null);
> ----------
> Assertion failure: '0' on line 753 in file 'expression.c'
> ----------
>
> after which DMD hangs.
message under Linux:
#
# global.errors = 0, gag = 2
# 0x81470c0 ~ type=char[] e1=0x8147250 e2=0x8147230
# 0x8147250 string type=char[]
# 0x8147230 null type=char[]
# dmd-0.167.bin: expression.c:756: virtual void Expression::toMangleBuffer(OutBuffer*): Assertion `0' failed.
Added to DStress as
http://dstress.kuehne.cn/compile/o/opCat_23_A.d
http://dstress.kuehne.cn/compile/o/opCat_23_B.d
http://dstress.kuehne.cn/compile/o/opCat_23_C.d
http://dstress.kuehne.cn/compile/o/opCat_23_D.d
http://dstress.kuehne.cn/compile/o/opCat_23_E.d
http://dstress.kuehne.cn/compile/o/opCat_23_F.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFFEZX5LK5blCcjpWoRAtWbAKCm0y2vbfTBRqlUMIKwZ0Se4CWX/wCdEDOR
B7vQA6OcJF5G/nMB35yCniU=
=reHh
-----END PGP SIGNATURE-----
Comment 2 Walter Bright 2006年11月25日 03:28:44 UTC
Fixed DMD 0.175


AltStyle によって変換されたページ (->オリジナル) /