[Bug d/101672] New: d: Allow use of classes without the runtime if they only contain static members

ibuclaw at gdcproject dot org gcc-bugzilla@gcc.gnu.org
Thu Jul 29 10:22:04 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101672

            Bug ID: 101672
           Summary: d: Allow use of classes without the runtime if they
                    only contain static members
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: ibuclaw at gdcproject dot org
  Target Milestone: ---

This should compile, but may not link and run properly without a thread-local
storage implementation.
---
interface I
{
    static int i;
}

class A : I
{
    static int a;
}

class B : A
{
    static int b;
}

void main()
{
    B.i = 32;
    B.a = 42;
    B.b = 52;
}


More information about the Gcc-bugs mailing list