Topic: defect report: 3.6.2[basic.start.init]/4, "object of namespace scope
Author: litb <Schaub-Johannes@web.de>
Date: Fri, 19 Jun 2009 23:53:35 CST Raw View
The paragraph says (in the latest draft, n2857)
> It is implementation-de ned 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 rst 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-de ned 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 rst statement of main.
--
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@netlab.cs.rpi.edu]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]