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++/12964] string literal is treated as "const char[]" in conditional expression


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-08 16:40 -------
ICC 6.0 also errors out:
pr12964.cc(5): error: a value of type "const char *" cannot be used to initialize an entity of 
type "char *"
      char *s = n ? "foo" : "bar";
                ^


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12964


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