[Issue 716] New: -inline: conditinal compilation of an empty foreach body causes the compiler to segfault
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 22 05:24:24 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=716
Summary: -inline: conditinal compilation of an empty foreach body
causes the compiler to segfault
Product: D
Version: 0.177
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: thomas-dloop at kuehne.cn
(Originally posted by Stewart Gordon <smjg_1998 at yahoo.com>
on 2005-04-18 as news:d4026v$nc0$5 at digitaldaemon.com)
#
# int main(char[][] args) {
# foreach(char[] p; args){
# version(dummy) int i;
# }
# return 0;
# }
#
compiling with "dmd -inline sample.d" causes the compiler to segfault
test cases:
http://dstress.kuehne.cn/run/foreach_28.d
http://dstress.kuehne.cn/run/foreach_29.d
http://dstress.kuehne.cn/run/f/foreach_28_B.d
--
More information about the Digitalmars-d-bugs
mailing list