www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21218] New: dtoh: protected attribute should be emitted to

https://issues.dlang.org/show_bug.cgi?id=21218

          Issue ID: 21218
           Summary: dtoh: protected attribute should be emitted to headers
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Keywords: bootcamp
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: greeenify gmail.com

```
extern(C++) struct Foo {
  protected int a = 1;
}
```

generates currently:

```
struct Foo
{
    int32_t a;
    Foo() {}
};
```

expected:

```
struct Foo
{
    protected int32_t a;
    Foo() {}
};
```

--
Sep 03 2020