What    |Removed                     |Added
            Summary|forward reference by        |Segfault taking mangleof a
                   |pragma(msg) in template:    |forward reference in a
                   |"mtype.c:550: virtual       |template.
                   |Expression*                 |
                   |Type::getProperty(Loc,      |
                   |Identifier*): Assertion     |
                   |`deco' failed"              |

------- Comment #2 from  2009-04-16 04:05 -------
Actually it's nothing to do with pragma(msg). It's the mangleof which is the
problem. Change it to .stringof and problem disappears.

template Templ(T) {
const char [] XXX = Type.mangleof;
    alias T Type;

void main() {
    Templ!(int).Type x;  // instantiate
Segfaults on DMD2.028.
assert mtype.c(1272) deco

Assertion failure: 'deco' on line 576 in file 'mtype.c'

abnormal program termination


Reply via email to