[Issue 12476] New: Assert error in interpret.c:3204
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 26 15:13:21 PDT 2014
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 at puremagic.com
ReportedBy: jcrapuchettes at gmail.com
--- Comment #0 from Jonathan Crapuchettes <jcrapuchettes at gmail.com> 2014-03-26 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: -------
More information about the Digitalmars-d-bugs
mailing list