Bug 20659 – C++ header generation does not emit namespaces

Status
RESOLVED
Resolution
WORKSFORME
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-03-10T06:16:41Z
Last change time
2021-03-21T13:15:35Z
Assigned to
No Owner
Creator
Manu

Comments

Comment #0 by turkeyman — 2020-03-10T06:16:41Z
extern(C++, "namespace") void foo() {} compile with -HC When a namespace is specified, the symbol is left out of the header file completely.
Comment #1 by iamthewilsonator — 2021-03-21T13:15:35Z
this produces namespace namespace { extern void foo(); }