Bug 853 – Internal error: toir.c 182

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-01-17T17:57:00Z
Last change time
2014-02-15T13:13:06Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
lijat.me

Comments

Comment #0 by lijat.me — 2007-01-17T17:57:37Z
The code below causes an internal error in dmd. johan@Cyclop:~/Desktop/sylph$ cat test.d module test; import st.stackcontext; class Test{ StackContext context; private void init(char[][] argvs){ context=new StackContext({}); } this(char[][] argvs){ init(argvs); } } void main(char[][] args){ new Test(args); } johan@Cyclop:~/Desktop/sylph$ dmd -inline test.d Internal error: toir.c 182 johan@Cyclop:~/Desktop/sylph$
Comment #1 by thomas-dloop — 2007-02-23T16:35:28Z
I can't reproduce this issue because module st.stackcontext is missing.
Comment #2 by lijat.me — 2007-02-23T18:02:18Z
(In reply to comment #1) > I can't reproduce this issue because module st.stackcontext is missing. > It's from the stacktreads library http://www.assertfalse.com/projects.shtml. Sorry should have said that.
Comment #3 by thomas-dloop — 2007-02-27T10:46:56Z
reduced test case: # class StackContext{ # this(void delegate()){ # } # } # # class Test{ # StackContext context; # # private void init(){ # context = new StackContext({}); # } # # this(){ # init(); # } # } Added to DStress as http://dsrtess.kuehne.cn/run/b/bug_toir_182_A.d http://dsrtess.kuehne.cn/run/b/bug_toir_182_B.d http://dsrtess.kuehne.cn/run/b/bug_toir_182_C.d http://dsrtess.kuehne.cn/run/b/bug_toir_182_D.d http://dsrtess.kuehne.cn/run/b/bug_toir_182_E.d
Comment #4 by smjg — 2007-09-19T07:03:20Z
Please remember to assign keywords to bug reports. To everybody reading this: Please look through issues you've reported and check for missing keywords.
Comment #5 by bugs-d — 2009-03-30T00:47:25Z
These tests all pass now on DMD 1.041 and 2.026. -[Unknown]