]> git.ipfire.org Git - thirdparty/gcc.git/commit
c-format.c (check_format_arg): Handle string literals of the form &"string"[offset].
authorRichard Guenther <rguenth@gcc.gnu.org>
Fri, 13 May 2005 09:48:12 +0000 (09:48 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 13 May 2005 09:48:12 +0000 (09:48 +0000)
commitf5c9a09777ebdaa3fd74d356e00c1777d2610cd4
treeb9d23e0b16c4bdc7b552843f6fdf8735223307d0
parent0e687cb4f16eb81036639406bdbbaa554e328052
c-format.c (check_format_arg): Handle string literals of the form &"string"[offset].

2005-05-14  Richard Guenther  <rguenth@gcc.gnu.org>

* c-format.c (check_format_arg): Handle string literals of
the form &"string"[offset].

* g++.dg/warn/format4.C: New testcase.

From-SVN: r99652
gcc/ChangeLog
gcc/c-format.c
gcc/testsuite/g++.dg/warn/format4.C [new file with mode: 0644]