[Issue 1034] New: regression: -inline -O run/o/odd_bug_09_A.d
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 7 15:08:08 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1034
Summary: regression: -inline -O run/o/odd_bug_09_A.d
Product: DGCC aka GDC
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: glue layer
AssignedTo: dvdfrdmn at users.sf.net
ReportedBy: thomas-dloop at kuehne.cn
# struct S{
# union{
# void delegate(uint) del;
# void function(uint) fp;
# }
# static S opCall(void function(uint) c,uint i){
# S a;
# a.fp = c;
# return a;
# }
# }
#
# S s;
#
# static this(){
# s = S(&foo, 0);
# }
#
# void foo(uint i){
# }
#
# int main(){
# foo(0);
# if(! s.fp){
# assert(0);
# }
# s.fp(0);
#
# return 0;
# }
gdmd-0.23 -inline -O run/o/odd_bug_09_A.d -ofx && ./x
Error: AssertError Failure run/o/odd_bug_09_A.d(36)
test case:
http://dstress.kuehne.cn/run/o/odd_bug_09_A.d
--
More information about the D.gnu
mailing list