This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 117b. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-08-11
2607. Visibility of enumerator namesSection: 10.2 [module.interface] Status: drafting Submitter: Richard Smith Date: 2022-06-28Consider:
// 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.
CWG 2022-11-10
See 10.2 [module.interface] paragraph 7.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4