This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12567] g++ fails to recognize ill-formed-ness of initilaizers
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Oct 2003 02:38:07 -0000
- Subject: [Bug c++/12567] g++ fails to recognize ill-formed-ness of initilaizers
- References: <20031010085509.12567.debian-gcc@lists.debian.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12567
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-10-11 02:38:07
date| |
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-11 02:38 -------
icc 6.0 warns:
pr12567.cc(15): warning #854: const variable "a_foo" requires an initializer -- class "foo" has no
explicitly declared default constructor
const foo a_foo; // ill-formed - foo has no user-declared def-cons
^
pr12567.cc(17): warning #854: const variable "a_doo" requires an initializer -- class "doo" has no
explicitly declared default constructor
const doo a_doo; // ill-formed - doo has no user-declared def-cons
^
pr12567.cc(18): warning #854: const variable "a_zoo" requires an initializer -- class "zoo" has no
explicitly declared default constructor
const zoo a_zoo; // ill-formed? not sure about this one...