re PR c/6547 (misleading printf '$' format)
authorJoseph Myers <jsm28@cam.ac.uk>
Fri, 3 May 2002 20:17:57 +0000 (21:17 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 3 May 2002 20:17:57 +0000 (21:17 +0100)
commit5a3085c52322177de6a1896d9c5388898b9daa54
tree26076b1ab9508d93bec2ead731ea7f5f933b8074
parent0659e0e3df6a29122914540ea13e7373ec84ab8e
re PR c/6547 (misleading printf '$' format)

* 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.

From-SVN: r53118
gcc/ChangeLog
gcc/c-format.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format/xopen-2.c [new file with mode: 0644]