OSDN Git Service

* c-format.c (check_format_info_main): Don't check for presence of
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 May 2002 20:17:57 +0000 (20:17 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 May 2002 20:17:57 +0000 (20:17 +0000)
commit136d950fac4f99b4756e567b2369e593923ba010
tree26076b1ab9508d93bec2ead731ea7f5f933b8074
parentee12f7ca4f4e402bb477a00620f683b415352bb7
* c-format.c (check_format_info_main): Don't check for presence of
parameter for * width until after operand number has been read,
and only check for it if format parameters are available.
Fixes PR c/6547.

testsuite:
* gcc.dg/format/xopen-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53118 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-format.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format/xopen-2.c [new file with mode: 0644]