[basic.def.odr] CWG 2433: Why is "external linkage" only mentioned for inline functions & variables? #3237
Labels
cwg
Issue must be reviewed by CWG.
not-editorial
Issue is not deemed editorial; the editorial issue is kept open for tracking.
[basic.def.odr]/12:
Why is "external linkage" only mentioned in the third bullet? Why isn't it required for classes and enums?
AFAIK entities with internal linkage/no linkage cannot appear in multiple translation units, so they can't have more than one definition. (There can be definitions with the same spelling, but they nonetheless define different entities.) This applies to all entities: there's no reason to special-case inline functions & variables.
The text was updated successfully, but these errors were encountered: