This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12567] g++ fails to recognize ill-formed-ness of initilaizers


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...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]