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++/29455] Issues with -Wchar-subscripts



------- Comment #7 from h dot b dot furuseth at usit dot uio dot no  2006-10-24 08:20 -------
Subject: Re:  Issues with -Wchar-subscripts

gdr at integrable-solutions dot net writes:
> The absence of warning in C is OK -- literal characters have type int
> in C.

Yes, but see previous comments.

> The warning in C++ is arguably bogus because the value of the
> character '%' is known at compile-time, consequently the warning
> is unwarranted (unless it really is negative).

unwarranted unless it _could_ be negative on some host.


-- 


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


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