D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20022 - POSIX: extern(C++, `namespace`) does not apply namespace to enum
Summary: POSIX: extern(C++, `namespace`) does not apply namespace to enum
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All Linux
: P1 regression
Assignee: Mathias LANG
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2019-07-03 03:45 UTC by Mathias LANG
Modified: 2019-07-03 07:07 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Mathias LANG 2019-07-03 03:45:28 UTC
```
extern(C++, namespace) enum FooBar { A = 1, }
extern(C++, `namespace`) enum FooBar2 { A = 1, }

pragma(msg, FooBar.mangleof);
pragma(msg, FooBar2.mangleof);
```

DMD 2.086.1:
```
E3foo9namespace6FooBar
E3foo9namespace7FooBar2
```

DMD 2.087.0:
```
E3foo9namespace6FooBar
E3foo7FooBar2
```

Most likely introduced by my refactoring: https://github.com/dlang/dmd/pull/10021
Comment 1 Dlang Bot 2019-07-03 05:35:06 UTC
@Geod24 created dlang/dmd pull request #10127 "Fix issue 20022: [POSIX] extern(C++, "namespace") does not apply namespace to enum" fixing this issue:

- Fix issue 20022: [POSIX] extern(C++, "namespace") does not apply namespace to enum

https://github.com/dlang/dmd/pull/10127
Comment 2 Dlang Bot 2019-07-03 07:07:14 UTC
dlang/dmd pull request #10127 "Fix issue 20022: [POSIX] extern(C++, "namespace") does not apply namespace to enum" was merged into stable:

- ba52a8f718818590d0627e7d09ceab04800ef70f by Geod24:
  Fix issue 20022: [POSIX] extern(C++, "namespace") does not apply namespace to enum

https://github.com/dlang/dmd/pull/10127