Bug 11388 – fun (A a) is not callable using argument types (A)

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-30T13:51:00Z
Last change time
2013-10-30T20:17:15Z
Assigned to
nobody
Creator
thelastmammoth

Comments

Comment #0 by thelastmammoth — 2013-10-30T13:51:47Z
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); }
Comment #1 by thelastmammoth — 2013-10-30T14:16:21Z
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
Comment #2 by thelastmammoth — 2013-10-30T19:39:55Z
actually this is probably due to fact that rt/deh2.d is now obsolete. If so, it should be removed.
Comment #3 by bugzilla — 2013-10-30T20:17:15Z
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.