--- 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
--- 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
--
What|Removed |Added
Summary|Cannot instansate const |Cannot instantiate const
|struct without constructor. |struct without constructor.
http://g