← Back to index
|
Original Bugzilla link
Bug 10975 – Assertion failed: (type->ty != Tstruct || ((TypeStruct *)type)->sym == this), function semantic, file struct.c, line 791.
Status
RESOLVED
Resolution
DUPLICATE
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-09-05T15:36:00Z
Last change time
2013-10-08T22:32:06Z
Assigned to
nobody
Creator
thelastmammoth
Comments
Comment #0
by thelastmammoth — 2013-09-05T15:36:27Z
using either dmd 2.063.2 or DMD64 D Compiler v2.064-devel-66a38bb I get: Assertion failed: (type->ty != Tstruct || ((TypeStruct *)type)->sym == this), function semantic, file struct.c, line 791. ---- void foo(){} template isExpr(string expr){ //enum isExpr=false; // use that instead => OK enum isExpr=__traits(compiles, foo(mixin(expr)) ); } void bug_test(string a)(){ struct A{ } //move out => OK a.unexisting_fun; } void main(){ static if(isExpr!("bug_test!``()")){} bug_test!``(); } ----
Comment #1
by bugzilla — 2013-10-08T22:32:06Z
*** This issue has been marked as a duplicate of issue 11075 ***