www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5349] New: ICE(toir.c): Internal error: toir.c 190

reply d-bugmail puremagic.com writes:
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



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: -------
Dec 14 2010
next sibling parent d-bugmail puremagic.com writes:
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



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: -------
Feb 02 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5349


Don <clugdbug yahoo.com.au> changed:

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



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: -------
Feb 06 2011