Bug 20022 – POSIX: extern(C++, `namespace`) does not apply namespace to enum

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2019-07-03T03:45:28Z
Last change time
2019-07-03T07:07:14Z
Keywords
pull
Assigned to
Mathias LANG
Creator
Mathias LANG

Comments

Comment #0 by pro.mathias.lang — 2019-07-03T03:45:28Z
``` 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 by dlang-bot — 2019-07-03T05:35:06Z
@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 by dlang-bot — 2019-07-03T07:07:14Z
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