Mercurial > projects > dstress
changeset 174:b824116874df
undefined symbol in uint switch crashes the compiler
Geoff Hickey <Geoff_member@pathlink.com>
2004-12-03
news:coodc7$27qp$1@digitaldaemon.com
nntp://news.digitalmars.com/digitalmars.D.bugs/2431
author | thomask |
---|---|
date | Fri, 03 Dec 2004 13:09:37 +0000 |
parents | 6c00d3fd09ec |
children | 915316554721 |
files | nocompile/bug_20041203_A.d nocompile/bug_20041203_B.d |
diffstat | 2 files changed, 62 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bug_20041203_A.d Fri Dec 03 13:09:37 2004 +0000 @@ -0,0 +1,31 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Geoff Hickey <Geoff_member@pathlink.com> +// @date@ 2004-12-03 +// @uri@ news:coodc7$27qp$1@digitaldaemon.com +// @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/2431 + +module dstress.nocompile.bug_20041203_A; + +struct MyStruct{ + uint i; +} + +int main(){ + MyStruct s; + s.i = 1; + + switch( s.i ){ + case undefined_identifier: + break; + } + + return 0; +} + + + + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bug_20041203_B.d Fri Dec 03 13:09:37 2004 +0000 @@ -0,0 +1,31 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Geoff Hickey <Geoff_member@pathlink.com> +// @date@ 2004-12-03 +// @uri@ news:coodc7$27qp$1@digitaldaemon.com +// @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/2431 + +module dstress.nocompile.bug_20041203_B; + +struct MyStruct{ + int i; +} + +int main(){ + MyStruct s; + s.i = 1; + + switch( s.i ){ + case undefined_identifier: + break; + } + + return 0; +} + + + + +