r196973 - in /branches/gcc-4_8-branch/gcc: cp/C...
jakub@gcc.gnu.org
jakub@gcc.gnu.org
Fri Mar 22 15:55:00 GMT 2013
Author: jakub
Date: Fri Mar 22 15:54:37 2013
New Revision: 196973
URL: http://gcc.gnu.org/viewcvs?rev=196973&root=gcc&view=rev
Log:
Backported from mainline
2013-03-16 Jakub Jelinek <jakub@redhat.com>
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:
branches/gcc-4_8-branch/gcc/testsuite/c-c++-common/pr56607.c
branches/gcc-4_8-branch/gcc/testsuite/g++.dg/warn/Wdiv-by-zero-2.C
Modified:
branches/gcc-4_8-branch/gcc/cp/ChangeLog
branches/gcc-4_8-branch/gcc/cp/typeck.c
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list