www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12476] New: Assert error in interpret.c:3204

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

           Summary: Assert error in interpret.c:3204
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: jcrapuchettes gmail.com



15:13:17 PDT ---
The following code will cause DMD to have the following assertion thrown:
dmd: interpret.c:3204: virtual Expression* BinExp::interpret(InterState*,
CtfeGoal): Assertion `0' failed.

It appears to be a problem with Foo having an alias to a template that doesn't
"return" anything while trying to access that alias through an "alias this".


Code:
---
template A(T) {  }

struct Foo(T)
{
    alias B = A!T;
}

struct Bar
{
    Foo!int baz;
    alias baz this;
}

import std.traits;
enum h = hasMember!(Bar, "B");
---

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 26 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12476


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull



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

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 07 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12476




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

https://github.com/D-Programming-Language/dmd/commit/9a7f2a251ecf74852b30e3980d7192953ff44985
fix Issue 12476 - Assert error in interpret.c:3204

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


Issue 12476 - Assert error in interpret.c:3204

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 07 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12476


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

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


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