Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

defect report: 3.6.2[basic.start.init]/4, "object of namespace scope"

52 views
Skip to first unread message

litb

unread,
Jun 20, 2009, 1:53:35 AM6/20/09
to
The paragraph says (in the latest draft, n2857)

> It is implementation-defined whether the dynamic initialization (8.5, 9.4, 12.1, 12.6.1) of an object of name-space scope with static storage duration is done before the first statement of main.

referring to 9.4[class.static]. This seems to also include objects of
class-scope, but the wording says it only happens to objects of name-
space scope. I propose to change it to the following, if the rule was
intended to also apply to static data members

> It is implementation-defined whether the dynamic initialization (8.5, 9.4, 12.1, 12.6.1) of an object defined in name-space scope with static storage duration is done before the first statement of main.


--
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std...@netlab.cs.rpi.edu]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]

0 new messages