This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-07-24


2230. Linkage of extern "C" function in unnamed namespace

Section: 6.6  [basic.link]     Status: NAD     Submitter: Jonathan Wakely     Date: 2016-03-09

Consider:

  namespace {
    extern "C" void f() { }
  }

Does f have internal or external linkage? Implementations seem to give f external linkage, but the standard prescribes internal linkage per 6.6 [basic.link] paragraph 4.

Rationale (November, 2016):

The specification is as intended.