Thread overview
[Issue 853] New: Internal error: toir.c 182
Jan 17, 2007
d-bugmail
Feb 23, 2007
d-bugmail
Feb 24, 2007
d-bugmail
Feb 27, 2007
d-bugmail
Sep 19, 2007
d-bugmail
Mar 30, 2009
d-bugmail
January 17, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=853

           Summary: Internal error: toir.c 182
           Product: D
           Version: 1.00
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: lijat.me@gmail.com


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$


-- 

February 23, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=853





------- Comment #1 from thomas-dloop@kuehne.cn  2007-02-23 16:35 -------
I can't reproduce this issue because module st.stackcontext is missing.


-- 

February 24, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=853





------- Comment #2 from lijat.me@gmail.com  2007-02-23 18:02 -------
(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.


-- 

February 27, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=853


thomas-dloop@kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Linux                       |All




------- Comment #3 from thomas-dloop@kuehne.cn  2007-02-27 10:46 -------
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


-- 

September 19, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=853


smjg@iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg@iname.com
           Keywords|                            |ice-on-valid-code




------- Comment #4 from smjg@iname.com  2007-09-19 07:03 -------
Please remember to assign keywords to bug reports.  To everybody reading this: Please look through issues you've reported and check for missing keywords.


-- 

March 30, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=853


unknown@simplemachines.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Comment #5 from unknown@simplemachines.org  2009-03-30 00:47 -------
These tests all pass now on DMD 1.041 and 2.026.

-[Unknown]


--