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++/16307] -Wchar-subscripts does not warn on pointers



------- Comment #5 from mueller at gcc dot gnu dot org  2006-10-29 18:38 -------
Subject: Bug 16307

Author: mueller
Date: Sun Oct 29 18:38:26 2006
New Revision: 118154

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118154
Log:
2006-10-29  Dirk Mueller  <dmueller@suse.de>

        PR c++/16307
        * typeck.c (build_array_ref): Warn for char subscriptions
        on pointers.

        * g++.dg/warn/Wchar-subscripts-2.C: New testcase.


Added:
    trunk/gcc/testsuite/g++.dg/warn/Wchar-subscripts-2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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