Title
Visibility of enumerator names
Status
drafting
Section
10.2 [module.interface]
Submitter
Richard Smith

Created on 2022-06-28.00:00:00 last changed 25 months ago

Messages

Date: 2022-11-11.15:58:20

CWG 2022-11-10

See 10.2 [module.interface] paragraph 7.

Date: 2022-11-11.15:58:20

Consider:

  // module interface unit
  export module M;
  export enum E : int;
  enum E : int { e };

  // other translation unit
  import M;
  auto a = E::e;  // #1: OK?
  auto b = e;     // #2: OK?

It is unclear whether the enumerator name e is or ought to be visible in the other translation unit.

See also issues 2588 (friend declarations) and 2480.

History
Date User Action Args
2022-11-11 15:58:20adminsetmessages: + msg7023
2022-11-11 15:58:20adminsetstatus: open -> drafting
2022-06-28 00:00:00admincreate