------- Additional Comments From giovannibajo at libero dot it  2005-01-04 
03:48 -------
The standard is pretty clear about this, in [dcl.init]/9:

If no initializer is specified for an object, and the object is of (possibly  
cv-qualified) non-POD class type (or array thereof), the object shall be  
default-initialized; if the object is of const-qualified type, the underlying 
class type shall have a user-declared default constructor. Otherwise, if no 
initializer is specified for a non-static object, the object and its 
subobjects, if any, have an indeterminate initial value[90]; if the object or  
any of its subobjects are of const-qualified type, the program is ill-formed.

[90] This does not apply to aggregate objects with automatic storage duration  
initialized with an incomplete brace-enclosed initializer-list; see 
[dcl.init.aggr].


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19246

Reply via email to