[Issue 934] New: forward reference by pragma(msg) in template: "mtype.c:550: virtual Expression* Type::getProperty(Loc, Identifier*): Assertion `deco' failed"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 6 05:17:33 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=934
Summary: forward reference by pragma(msg) in template:
"mtype.c:550: virtual Expression* Type::getProperty(Loc,
Identifier*): Assertion `deco' failed"
Product: D
Version: 1.00
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: fvbommel at wxs.nl
-----
urxae at urxae:~/tmp$ cat test.d
template Templ(T) {
pragma(msg, Type.mangleof);
alias T Type;
}
void main() {
Templ!(int).Type x; // instantiate
}
urxae at urxae:~/tmp$ dmd test.d
dmd: mtype.c:550: virtual Expression* Type::getProperty(Loc, Identifier*):
Assertion `deco' failed.
Aborted (core dumped)
-----
Saw this first in DMD v1.005 (not in bugzilla yet), but it fails with v1.00 as
well.
--
More information about the Digitalmars-d-bugs
mailing list