D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20659 - C++ header generation does not emit namespaces
Summary: C++ header generation does not emit namespaces
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-10 06:16 UTC by Manu
Modified: 2021-03-21 13:15 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Manu 2020-03-10 06:16:41 UTC
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 Nicholas Wilson 2021-03-21 13:15:35 UTC
this produces 

namespace namespace
{
    extern void foo();

}