Bug 2589 – assertion failure when a struct contains a forward referenced, aliased function member.

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2009-01-16T15:44:00Z
Last change time
2015-06-09T01:21:01Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
ace17

Comments

Comment #0 by ace17 — 2009-01-16T15:44:34Z
// // dmd: mtype.c:1103: Type* Type::merge(): Assertion `t->deco' failed. // [1] 10615 abort dmd test.d struct S { A a; } alias int function(void *, ubyte *, ubyte *, ubyte *, ubyte *) A;
Comment #1 by smjg — 2009-01-16T20:10:59Z
It's closely related to issue 339 - the testcases there also AF under DMD 2.023, even though they merely error under 1.039. This, OTOH, compiles without error under the latter.
Comment #2 by clugdbug — 2009-05-04T08:05:17Z
*** This bug has been marked as a duplicate of 1994 ***