[Issue 1994] Assertion failure: 't->deco' on line 597 in file 'mtype.c'
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jan 12 01:54:26 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1994
htvennik at zonnet.nl changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |htvennik at zonnet.nl
------- Comment #6 from htvennik at zonnet.nl 2009-01-12 03:54 -------
I ran into this bug too. When investigating it I found that it happens if an
alias for a function pointer type is forward referenced, except when the type
is "void function()". Surprisingly, changing the type into a delegate type will
make it compile.
The minimal test-case seems to be:
Fn f;
alias int function() Fn;
Btw: For DMD 2.023 the assert is at mtype.c:1103.
--
More information about the Digitalmars-d-bugs
mailing list