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


Walter Bright <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|                            |WORKSFORME


--- Comment #4 from Walter Bright <[email protected]> 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: -------

Reply via email to