You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The member shall still be defined in a namespace scope if it is odr-used ([basic.def.odr]) in the program and the namespace scope definition shall not contain an initializer.
If I understand correctly, no diagnostic is required for the former case (covered by [basic.def.odr]/11), but diagnostic is required for the latter. Should we specify them more differently?
The text was updated successfully, but these errors were encountered:
I'm not seeing an imminent need. The presence of an initializer for a namespace-scope definition is clearly and easily checkable; the ODR violation already has a cross-reference into IFNDR territory.
I'm not seeing an imminent need. The presence of an initializer for a namespace-scope definition is clearly and easily checkable; the ODR violation already has a cross-reference into IFNDR territory.
Agree. Closing since cross-reference is sufficient.
[class.static.data]/4 currently says:
If I understand correctly, no diagnostic is required for the former case (covered by [basic.def.odr]/11), but diagnostic is required for the latter. Should we specify them more differently?
The text was updated successfully, but these errors were encountered: