Skip to content
Snippets Groups Projects
Commit d4033c81 authored by Manuel López-Ibáñez's avatar Manuel López-Ibáñez
Browse files

re PR c++/17880 (-Wsequence-point doesn't warn inside if, while, do...

re PR c++/17880 (-Wsequence-point doesn't warn inside if, while, do conditions, for beg/cond/end expressions etc.)

2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	PR c++/17880
cp/
	* semantics.c (maybe_convert_cond): Call verify_sequence_points.
	(finish_return_stmt): Likewise.
	(finish_switch_condition): Likewise.
testsuite/
	* g++.dg/warn/sequence-pt-1.C: New.
	* g++.dg/warn/sequence-pt-pr17880.C: New.

From-SVN: r139625
parent f5d09f36
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment