www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11388] New: fun (A a) is not callable using argument types (A)

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11388

           Summary: fun (A a) is not callable using argument types (A)
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: thelastmammoth gmail.com


--- Comment #0 from thelastmammoth gmail.com 2013-10-30 13:51:47 PDT ---
dmd -c -o- -Ipath/to/dmd2_064_beta_4/src/druntime/src/ main.d
 Error: function main.fun2 (immutable(FuncTable)* a) is not callable using
argument types (immutable(FuncTable)*)

import rt.sections_osx:SectionGroup;
import rt.deh2:FuncTable;
void fun2(immutable(FuncTable)* a){}
void fun(){
  SectionGroup sg;
  auto a = sg.ehTables.ptr;
  fun2(a);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 30 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11388


thelastmammoth gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |regression


--- Comment #1 from thelastmammoth gmail.com 2013-10-30 14:16:21 PDT ---
actually this is a regression: worked in dmd 063.2, doesn't in dmd 064:

path/dmd2_063_2/osx/bin//dmd -c -o- -Ipath/dmd2_063_2/src/druntime/src/
path/dmd2_063_2/src/druntime/src/rt/deh2.d

works


but replace dmd2_063_2 by dmd2_064_beta_4 everywhere in the line above:

dmd2_064_beta_4/src/druntime/src/rt/deh2.d(121): Error: function
rt.deh2.__eh_finddata (void* address) is not callable using argument types
(void*, immutable(FuncTable)*, immutable(FuncTable)*)

dmd2_064_beta_4/src/druntime/src/rt/deh2.d(117): Error: opApply() function for
SectionGroup must return an int

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 30 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11388



--- Comment #2 from thelastmammoth gmail.com 2013-10-30 19:39:55 PDT ---
actually this is probably due to fact that rt/deh2.d is now obsolete.
If so, it should be removed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 30 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11388


Walter Bright <bugzilla digitalmars.com> changed:

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


--- Comment #3 from Walter Bright <bugzilla digitalmars.com> 2013-10-30
20:17:15 PDT ---
Yah, deh2.d got inadvertently added to the release zip. The git repository is
already fixed, so nothing to do there. The next beta will have it gone.

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