Thread overview
[Issue 5349] New: ICE(toir.c): Internal error: toir.c 190
Dec 14, 2010
Iain Buclaw
[Issue 5349] ICE(toir.c): nested class in static member function
Feb 02, 2011
Don
Feb 06, 2011
Don
December 14, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5349

           Summary: ICE(toir.c): Internal error: toir.c 190
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: ibuclaw@ubuntu.com


--- Comment #0 from Iain Buclaw <ibuclaw@ubuntu.com> 2010-12-14 04:17:17 PST ---
From fail_compilation/fail224.d

int gi;

class A
{
    int x = 42;

    void am()
    {
        static void f()
        {
            class B
            {
                void bm()
                {
                    gi = x;
                }
            }

            (new B).bm();
        }

        f();
    }
}

void main()
{
    (new A).am();
}


Fails with an internal error message. Rather than something meaningful.

Regards

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 02, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5349


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |clugdbug@yahoo.com.au
            Summary|ICE(toir.c): Internal       |ICE(toir.c): nested class
                   |error: toir.c 190           |in static member function


--- Comment #1 from Don <clugdbug@yahoo.com.au> 2011-02-02 12:34:12 PST ---
PATCH: (D1 + D2) https://github.com/donc/dmd/commit/9832485500b07209172c3e9d960eac095ff50c3b https://github.com/donc/dmd/commit/9832485500b07209172c3e9d960eac095ff50c3b

Test case: https://github.com/donc/dmd/commit/5332fa13cdda457f0a3dec6a0287fe1f8b738edd

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 06, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5349


Don <clugdbug@yahoo.com.au> changed:

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


--- Comment #2 from Don <clugdbug@yahoo.com.au> 2011-02-06 13:51:15 PST ---
Fixed https://github.com/D-Programming-Language/dmd/commit/c7f94c6b66d3b4233ea01dd3dd9f0028b7118870

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------