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++/70194] [6 regression] missing -Waddress on constexpr pointer


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70194

--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Mar 17 10:29:36 2016
New Revision: 234281

URL: https://gcc.gnu.org/viewcvs?rev=234281&root=gcc&view=rev
Log:
        PR c++/70194
        * typeck.c (warn_for_null_address): New function.
        (cp_build_binary_op): Call it.

        * g++.dg/warn/constexpr-70194.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/warn/constexpr-70194.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.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]