This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14075] ("foo") accepted as char[] initializer
- 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: 8 Feb 2004 20:08:28 -0000
- Subject: [Bug c++/14075] ("foo") accepted as char[] initializer
- References: <20040208190047.14075.porten@kde.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-08 20:08 -------
Confirmed, ICC 6.0 only rejects it when in "pedantic" mode:
pr14075.cc
pr14075.cc(3): error: initialization with "{...}" expected for aggregate object
const char s[] = ("foo");
^
compilation aborted for pr14075.cc (code 2)
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |accepts-invalid
Known to fail| |3.5.0 3.3.3 3.0.4 3.3.1
| |3.2.3 3.2.2 3.4.0 2.95.3
Last reconfirmed|0000-00-00 00:00:00 |2004-02-08 20:08:27
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14075