aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2019-08-28 02:03:48 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2019-08-28 02:03:48 +0000
commit14da3939da3adcef84816573caa9d93c7367507e (patch)
tree1bc500d3505ce6feb8743a102df9a66cbb3bf3d4 /gcc/builtins.c
parent4719ac2f2d1d770a840316d02e68fdff8e223129 (diff)
downloadgcc-14da3939da3adcef84816573caa9d93c7367507e.zip
gcc-14da3939da3adcef84816573caa9d93c7367507e.tar.gz
gcc-14da3939da3adcef84816573caa9d93c7367507e.tar.bz2
PR c++/91428 - warn about std::is_constant_evaluated in if constexpr.
* cp-tree.h (decl_in_std_namespace_p): Declare. * semantics.c (is_std_constant_evaluated_p): New. (finish_if_stmt_cond): Warn about "std::is_constant_evaluated ()" in an if-constexpr. * typeck.c (decl_in_std_namespace_p): No longer static. * g++.dg/cpp2a/is-constant-evaluated9.C: New test. From-SVN: r274981
Diffstat (limited to 'gcc/builtins.c')
0 files changed, 0 insertions, 0 deletions