PR c++/17880 -Wsequence-point doesn't warn inside if, while, do conditions, for beg/cond/end expressions etc.
Manuel López-Ibáñez
lopezibanez@gmail.com
Mon Aug 25 08:00:00 GMT 2008
PING: http://gcc.gnu.org/ml/gcc-patches/2008-08/msg00790.html
2008/8/12 Manuel López-Ibáñez <lopezibanez@gmail.com>:
> Testcases come from the C testsuite.
>
> Bootstrapped and regression tested on x86_64-unknown-linux-gnu with
> --enable-languages=all,ada
>
> OK for trunk?
>
> 2008-08-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
>
> PR c++/17880
> cp/
> * semantics.c (begin_if_stmt): Call verify_sequence_points.
> (begin_while_stmt): Likewise.
> (finish_do_body): Likewise.
> (finish_return_stmt): Likewise.
> (finish_for_init_stmt): Likewise.
> (finish_switch_condition): Likewise.
> testsuite/
> * g++.dg/warn/sequence-pt-1.C: New.
> * g++.dg/warn/sequence-pt-pr17880.C: New.
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix-pr17880.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080825/376c50a8/attachment.ksh>
More information about the Gcc-patches
mailing list