25 – DMD segfault on foreach in template

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 25 - DMD segfault on foreach in template
Summary: DMD segfault on foreach in template
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Linux
: P3 minor
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
Reported: 2006年03月08日 05:58 UTC by Oskar Linde
Modified: 2014年02月15日 02:09 UTC (History)
1 user (show)

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 Oskar Linde 2006年03月08日 05:58:02 UTC
This bug is present in 0.149. It was not available in the version list.
template crash(T) {
 void crash(T t) {
 foreach(u;t) {}
 }
}
void main() {
 crash(null);
}
Causes DMD 0.149 linux to segfault. (It segfaults on the non-IFTI version too)
Comment 1 Thomas Kühne 2006年03月08日 09:50:33 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> This bug is present in 0.149. It was not available in the version list.
>
> template crash(T) {
> void crash(T t) {
> foreach(u;t) {}
> }
> }
>
> void main() {
> crash(null);
> }
>
> Causes DMD 0.149 linux to segfault. (It segfaults on the non-IFTI version too)
Added to DStress as
http://dstress.kuehne.cn/run/f/foreach_34_A.d
http://dstress.kuehne.cn/run/f/foreach_34_B.d
http://dstress.kuehne.cn/run/f/foreach_34_C.d
http://dstress.kuehne.cn/run/f/foreach_34_D.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFEDvln3w+/yD4P9tIRAmWuAKCYMuX7J1wtThXLsjjthmBTjU6aMgCgkqzn
yBB5OTCmyGQfnwNwSjnvgG0=
=VzQM
-----END PGP SIGNATURE-----
Comment 2 Walter Bright 2006年03月20日 22:21:19 UTC
Fixed 0.150


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