[Issue 8720] ICE(glue.c, !vthis->csym)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 6 23:47:31 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=8720


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla at digitalmars.com
         Resolution|                            |WORKSFORME


--- Comment #4 from Walter Bright <bugzilla at digitalmars.com> 2013-10-06 23:47:28 PDT ---
(In reply to comment #1)
> I get this with the following test case:
> 
> ----------------
> module b;
> void call(alias fun)() {
>     fun(0);
> }
> ----------------
> module a;
> import b;
> class A {
>     void foo(int c) {
>         call!(a => c);
>     }
> }
> ----------------

No error with 2.064 head.


> > dmd b.d a.d
> dmd: glue.c:727: virtual void FuncDeclaration::toObjFile(int): Assertion
> `!vthis->csym' failed.
> 
> 
> In addition, if I remove the class around the function foo, then I get the ICE
> described in issue 2962:
> 
> ----------------
> module b;
> void call(alias fun)() {
>     fun(0);
> }
> ----------------
> module a;
> import b;
> void foo(int c) {
>     call!(a => c);
> }
> ----------------
> 
> > dmd b.d a.d
> a.d(5): Error: function a.foo compiler error, parameter 'c', bugzilla 2962?
> dmd: glue.c:758: virtual void FuncDeclaration::toObjFile(int): Assertion `0'
> failed.

No error with 2.064 head.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list