Bug 11621 – dotexp Internal error: e2ir.c 780

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-27T12:16:00Z
Last change time
2013-11-27T20:04:21Z
Assigned to
nobody
Creator
rswhite4

Comments

Comment #0 by rswhite4 — 2013-11-27T12:16:07Z
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
Comment #1 by bearophile_hugs — 2013-11-27T12:56:22Z
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()'
Comment #2 by k.hara.pg — 2013-11-27T20:04:21Z
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 ***