7173 – dmd: glue.c:1065: virtual unsigned int Type::totym(): Assertion `0' failed.

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7173 - dmd: glue.c:1065: virtual unsigned int Type::totym(): Assertion `0' failed.
Summary: dmd: glue.c:1065: virtual unsigned int Type::totym(): Assertion `0' failed.
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: ice-on-invalid-code, patch
Depends on:
Blocks:
Reported: 2011年12月27日 07:56 UTC by Caligo
Modified: 2011年12月27日 12:04 UTC (History)
2 users (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Caligo 2011年12月27日 07:56:11 UTC
struct A{
 A opBinary(string op)(A a){ A rt; return rt; }
 void fun(){ }
}
struct B{
 A _a;
 alias _a this;
}
void main(){
 B b1, b2, b3; b3 = (b1 - b2).fun();
}
The above code causes:
dmd: glue.c:1065: virtual unsigned int Type::totym(): Assertion `0' failed.
Aborted
Comment 1 Kenji Hara 2011年12月27日 09:20:33 UTC
https://github.com/D-Programming-Language/dmd/pull/587 
Comment 2 Jimmy Cao 2011年12月27日 11:42:20 UTC
Is this related to bug6774?


AltStyle によって変換されたページ (->オリジナル) /