Created attachment 655
allow inlining of super.id(arg) calls
Bug 3500 reported bugginess with the inlining of super.id(args). The fix there
was to not inline that style call. The patch attached to this report removes
that block and fixes the underlying problem.
Now, the semantic pass rewrites super.id(args) to a direct call to the
baseclass.id(args).
This patch produced a regression (from DFL):
---------
// main.d
import other;
class Foo : OtherModuleClass
{
override void foo()
{
super.foo();
}
}
void main()
{
new Foo();
}
-----------
// other.d
class OtherModuleClass
{
protected void foo()
{
}
}
-----------
> >dmd main other
main.d(8): Error: class other.OtherModuleClass member foo is not accessible
Reported by SHOO.
Comment #3 by rayerd.wiz — 2010-08-29T17:07:10Z
Probably depends on 4728
Comment #4 by hsteoh — 2014-08-09T14:50:12Z
ping
Does this bug still apply to D2?
Comment #5 by razvan.nitu1305 — 2021-03-17T14:28:57Z