Title
Linkage of extern "C" function in unnamed namespace
Status
nad
Section
6.6 [basic.link]
Submitter
Jonathan Wakely

Created on 2016-03-09.00:00:00 last changed 83 months ago

Messages

Date: 2016-11-15.00:00:00

Rationale (November, 2016):

The specification is as intended.

Date: 2022-11-20.07:54:16

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.

History
Date User Action Args
2018-02-27 00:00:00adminsetmessages: + msg6000
2018-02-27 00:00:00adminsetstatus: open -> nad
2016-03-09 00:00:00admincreate