This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/52299] GCC warns on compile time division by zero erroneously


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52299

--- Comment #11 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-03-12 19:29:42 UTC ---
Author: paolo
Date: Mon Mar 12 19:29:38 2012
New Revision: 185264

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185264
Log:
/cp
2012-03-12  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/52299
    * pt.c (tsubst_copy_and_build, case COND_EXPR): Avoid bogus
    division by zero warnings.

/testsuite
2012-03-12  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/52299
    * g++.dg/warn/Wdiv-by-zero-bogus.C: New.


Added:
    trunk/gcc/testsuite/g++.dg/warn/Wdiv-by-zero-bogus.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]