r196704 - in /trunk/gcc: cp/ChangeLog cp/typeck...
jakub@gcc.gnu.org
jakub@gcc.gnu.org
Sat Mar 16 19:35:00 GMT 2013
Author: jakub
Date: Sat Mar 16 19:35:41 2013
New Revision: 196704
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196704
Log:
PR c++/56607
* typeck.c (cp_build_binary_op): When calling warn_for_div_by_zero,
pass op1 through maybe_constant_value first.
* g++.dg/warn/Wdiv-by-zero-2.C: New test.
* c-c++-common/pr56607.c: New test.
Added:
trunk/gcc/testsuite/c-c++-common/pr56607.c
trunk/gcc/testsuite/g++.dg/warn/Wdiv-by-zero-2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list