c-parse.in (select_or_iter_stmt): Use truthvalue_conversion on the condition of a...
authorGeoffrey Keating <geoffk@redhat.com>
Fri, 29 Dec 2000 08:27:40 +0000 (08:27 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Fri, 29 Dec 2000 08:27:40 +0000 (08:27 +0000)
commitfb8b656c65ec5df2bf16a8eb636577e8be619244
tree74df938ddc4fd9f854f62e5d03857b48c466e7c5
parent68940175460a147340617aa400213b32fda99fc4
c-parse.in (select_or_iter_stmt): Use truthvalue_conversion on the condition of a FOR statement...

2000-12-28  Geoffrey Keating  <geoffk@redhat.com>

* c-parse.in (select_or_iter_stmt): Use truthvalue_conversion
on the condition of a FOR statement, so that it gets typechecked
and optimised.

2000-12-28  Geoffrey Keating  <geoffk@redhat.com>

* gcc.dg/noncompile/20001228-1.c: New test.

From-SVN: r38527
gcc/ChangeLog
gcc/c-parse.in
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/noncompile/20001228-1.c [new file with mode: 0644]