Thread overview
[Issue 13305] Inconsistency in empty class and interface parsing
Sep 22, 2014
Kenji Hara
Dec 17, 2022
Iain Buclaw
August 16, 2014
https://issues.dlang.org/show_bug.cgi?id=13305

briancschott@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |10233

--
September 22, 2014
https://issues.dlang.org/show_bug.cgi?id=13305

--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> ---
I guess that the limitation has came from C++ class declaration syntax.

// C++ code
class C {};
class D : public C;   // NG

But I'm not sure the opaque class declaration with base class/interfaces can work with current ABI. For example:


class C { void foo() {} }
class I { void bar(); }
class D : C, I;     // opaque with base class/interfaces
D makeD();
void main()
{
    D d = makeD();
    d.foo();  // might work
    d.bar();  // can work...? vtbl of any base interfaces may not be accessible
              // because __traits(classInstanceSize, D) is unknown.
}

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=13305

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 13
https://issues.dlang.org/show_bug.cgi?id=13305

--- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/18868

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--