www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11621] New: dotexp Internal error: e2ir.c 780

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11621

           Summary: dotexp Internal error: e2ir.c 780
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: rswhite4 googlemail.com



This code:
----
struct A {
    template B(T) {
        struct C {
            void test() {

            }
        }

        alias B = C;
    }
}

void main() {
    A a;
    a.B!int.test();
}
----
Gives:
a.(C)
[/d821/f626.d(15)] dotexp Internal error: e2ir.c 780

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 27 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11621


bearophile_hugs eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs eml.cc



Using the latest dmd 2.065alpha on Windows 32 bit it doesn't crash to me, and
gives:

temp.d(15): Error: need 'this' for 'test' of type 'pure nothrow  safe void()'

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 27 2013
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11621


Kenji Hara <k.hara.pg gmail.com> changed:

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



The root cause is a dup of bug7645, and it was recently fixed in git head.

*** This issue has been marked as a duplicate of issue 7645 ***

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