Title
Missing prohibition of block-scope definition of extern object
Status
cd3
Section
6.6 [basic.link]
Submitter
Richard Smith

Created on 2011-11-13.00:00:00 last changed 90 months ago

Messages

Date: 2012-10-15.00:00:00

[Moved to DR at the October, 2012 meeting.]

Date: 2012-02-15.00:00:00

Proposed resolution (February, 2012):

Add the following as a new paragraph following 9.4 [dcl.init] paragraph 4:

[Note: Default arguments are more restricted; see 9.3.4.7 [dcl.fct.default].

The order of initialization of variables with static storage duration is described in 6.9.3 [basic.start] and 8.8 [stmt.dcl]. —end note]

A declaration of a block-scope variable with external or internal linkage that has an initializer is ill-formed.

To zero-initialize an object...

Date: 2011-11-13.00:00:00

There does not appear to be wording that prohibits a block-scope extern object declaration from being a definition.

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: drwp -> cd3
2013-05-03 00:00:00adminsetstatus: dr -> drwp
2012-11-03 00:00:00adminsetmessages: + msg4118
2012-11-03 00:00:00adminsetstatus: ready -> dr
2012-02-27 00:00:00adminsetmessages: + msg3689
2012-02-27 00:00:00adminsetstatus: open -> ready
2011-11-13 00:00:00admincreate