Mercurial > projects > dstress
changeset 600:c0ba153df32f
toobj.c:191: virtual void ClassDeclaration::toObjFile(): Assertion `!scope' failed
Ant^2i <Ant^2i_member@pathlink.com>
2005-07-04
news:dabjsi$16h8$1@digitaldaemon.com
author | thomask |
---|---|
date | Thu, 07 Jul 2005 17:04:51 +0000 |
parents | 4e81f0907fb9 |
children | 9156914a7518 |
files | run/b/bug_toobj_191_A.d run/b/bug_toobj_191_B.d run/b/bug_toobj_191_C.d run/b/bug_toobj_191_D.d run/b/bug_toobj_191_E.d run/b/bug_toobj_191_F.d |
diffstat | 6 files changed, 145 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bug_toobj_191_A.d Thu Jul 07 17:04:51 2005 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Ant^2i <Ant^2i_member@pathlink.com> +// @date@ 2005-07-04 +// @uri@ news:dabjsi$16h8$1@digitaldaemon.com +// @desc@ toobj.c:191: virtual void ClassDeclaration::toObjFile(): Assertion `!scope' failed + +module dstress.run.b.bug_toobj_191_A; + +class Class(T){ + Struct s; + + struct Struct{ + T t; + } +} + +int main(){ + Class!(int) o=new Class!(int); + return 0; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bug_toobj_191_B.d Thu Jul 07 17:04:51 2005 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Ant^2i <Ant^2i_member@pathlink.com> +// @date@ 2005-07-04 +// @uri@ news:dabjsi$16h8$1@digitaldaemon.com +// @desc@ toobj.c:191: virtual void ClassDeclaration::toObjFile(): Assertion `!scope' failed + +module dstress.run.b.bug_toobj_191_B; + +class Class(T){ + struct Struct{ + T t; + } + + Struct s; +} + +int main(){ + Class!(int) o=new Class!(int); + return 0; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bug_toobj_191_C.d Thu Jul 07 17:04:51 2005 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Ant^2i <Ant^2i_member@pathlink.com> +// @date@ 2005-07-04 +// @uri@ news:dabjsi$16h8$1@digitaldaemon.com +// @desc@ toobj.c:191: virtual void ClassDeclaration::toObjFile(): Assertion `!scope' failed + +module dstress.run.b.bug_toobj_191_C; + +class Class(T){ + Struct s; + + struct Struct{ + T t; + } +} + +int main(){ + Class!(int) o=new Class!(int); + assert(typeid(typeof(o.s.t)) == typeid(int)); + return 0; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bug_toobj_191_D.d Thu Jul 07 17:04:51 2005 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Ant^2i <Ant^2i_member@pathlink.com> +// @date@ 2005-07-04 +// @uri@ news:dabjsi$16h8$1@digitaldaemon.com +// @desc@ toobj.c:191: virtual void ClassDeclaration::toObjFile(): Assertion `!scope' failed + +module dstress.run.b.bug_toobj_191_D; + +struct Outer(T){ + Inner i; + + struct Inner{ + T t; + } +} + +int main(){ + Outer!(int)* o=new Outer!(int); + return 0; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bug_toobj_191_E.d Thu Jul 07 17:04:51 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Ant^2i <Ant^2i_member@pathlink.com> +// @date@ 2005-07-04 +// @uri@ news:dabjsi$16h8$1@digitaldaemon.com +// @desc@ toobj.c:191: virtual void ClassDeclaration::toObjFile(): Assertion `!scope' failed + +module dstress.run.b.bug_toobj_191_E; + +struct Outer(T){ + struct Inner{ + T t; + } + Inner i; +} + +int main(){ + Outer!(int)* o=new Outer!(int); + return 0; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bug_toobj_191_F.d Thu Jul 07 17:04:51 2005 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Ant^2i <Ant^2i_member@pathlink.com> +// @date@ 2005-07-04 +// @uri@ news:dabjsi$16h8$1@digitaldaemon.com +// @desc@ toobj.c:191: virtual void ClassDeclaration::toObjFile(): Assertion `!scope' failed + +module dstress.run.b.bug_toobj_191_F; + +struct Outer(T){ + Inner i; + + struct Inner{ + T t; + } +} + +int main(){ + Outer!(int)* o=new Outer!(int); + assert(typeid(typeof(o.i.t))==typeid(int)); + return 0; +} +