[Bug c++/19246] Cannot instantiate const struct without constructor.

2005-01-03 Thread giovannibajo at libero dot it
--- 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

[Bug c++/19246] Cannot instantiate const struct without constructor.

2005-01-03 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-04 00:45 --- Hmm, comeu C++ also rejects it: "ComeauTest.c", line 2: error: const variable "s" requires an initializer -- class "S" has no explicitly declared default constructor const S s; ^ "Co

[Bug c++/19246] Cannot instantiate const struct without constructor.

2005-01-03 Thread pcarlini at suse dot de
-- What|Removed |Added Summary|Cannot instansate const |Cannot instantiate const |struct without constructor. |struct without constructor. http://g