www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10082] New: Multiple mixin template instantiations are not checked

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

           Summary: Multiple mixin template instantiations are not checked
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid, ice
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: maxim maxim-fomin.ru



---
mixin template  T()
{
   int foo()
   {
      return 0;
   }
}

class A
{
   mixin T;
   mixin T;
}

void main()
{
   auto x = &A.foo;
}

DMD v2.063-devel-4ed3396 DEBUG
__overloadset
[main.d(17)] __overloadset Internal error: e2ir.c 776

Note, if A.foo is not referenced dmd emits two eponymous symbols. I believe
this is related to the bug when code which retrieves same method via delegate
and via __traits(getOverloads) is compiled and crashes at runtime.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 14 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10082


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
            Version|unspecified                 |D2



https://github.com/D-Programming-Language/dmd/pull/2616

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 02 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10082




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/6e6e34ab802d42607a4bf737809a552f965dd672
fix Issue 10082 - ICE(e2ir.c) Multiple mixin template instantiations are not
checked

https://github.com/D-Programming-Language/dmd/commit/5e8306cae04c2dc56fec39624ae1efdbc0c76d0b


Issue 10082 - ICE(e2ir.c) Multiple mixin template instantiations are not
checked

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 02 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10082


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


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