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++/14075] ("foo") accepted as char[] initializer


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


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