Add quotes for constexpr keyword

Programming / Compilers / GCC - marxin [138bc75d-0d04-0410-961f-82ee72b054a4] - 21 November 2017 18:58 EST

2017-11-21 Martin Liska

- class.c (finalize_literal_type_property): Add quotes for constexpr keyword. (explain_non_literal_class): Likewise.
- constexpr.c (ensure_literal_type_for_constexpr_object): Likewise. (is_valid_constexpr_fn): Likewise. (check_constexpr_ctor_body): Likewise. (register_constexpr_fundef): Likewise. (explain_invalid_constexpr_fn): Likewise. (cxx_eval_builtin_function_call): Likewise. (cxx_eval_call_expression): Likewise. (cxx_eval_loop_expr): Likewise. (potential_constant_expression_1): Likewise.
- decl.c (check_previous_goto_1): Likewise. (check_goto): Likewise. (grokfndecl): Likewise. (grokdeclarator): Likewise.
- error.c (maybe_print_constexpr_context): Likewise.
- method.c (process_subob_fn): Likewise. (defaulted_late_check): Likewise.
- parser.c (cp_parser_compound_statement): Likewise. 2017-11-21 Martin Liska

- g++.dg/cpp0x/constexpr-48089.C: Add quotes for constexpr keyword; add dg-message for 'in .constexpr. expansion of '.
- g++.dg/cpp0x/constexpr-50060.C: Likewise.
- g++.dg/cpp0x/constexpr-60049.C: Likewise.
- g++.dg/cpp0x/constexpr-70323.C: Likewise.
- g++.dg/cpp0x/constexpr-70323a.C: Likewise.
- g++.dg/cpp0x/constexpr-cast.C: Likewise.
- g++.dg/cpp0x/constexpr-diag3.C: Likewise.
- g++.dg/cpp0x/constexpr-ex1.C: Likewise.
- g++.dg/cpp0x/constexpr-generated1.C: Likewise.
- g++.dg/cpp0x/constexpr-ice16.C: Likewise.
- g++.dg/cpp0x/constexpr-ice5.C: Likewise.
- g++.dg/cpp0x/constexpr-incomplete2.C: Likewise.
- g++.dg/cpp0x/constexpr-neg1.C: Likewise.
- g++.dg/cpp0x/constexpr-recursion.C: Likewise.
- g++.dg/cpp0x/constexpr-shift1.C: Likewise.
- g++.dg/cpp1y/constexpr-70265-1.C: Likewise.
- g++.dg/cpp1y/constexpr-70265-2.C: Likewise.
- g++.dg/cpp1y/constexpr-79655.C: Likewise.
- g++.dg/cpp1y/constexpr-new.C: Likewise.
- g++.dg/cpp1y/constexpr-return2.C: Likewise.
- g++.dg/cpp1y/constexpr-shift1.C: Likewise.
- g++.dg/cpp1y/constexpr-throw.C: Likewise.
- g++.dg/cpp1z/constexpr-lambda6.C: Likewise.
- g++.dg/ext/constexpr-vla1.C: Likewise.
- g++.dg/ext/constexpr-vla2.C: Likewise.
- g++.dg/ext/constexpr-vla3.C: Likewise.
- g++.dg/cpp0x/static_assert10.C: Likewise.
- g++.dg/cpp1y/pr63996.C: Likewise.
- g++.dg/cpp1y/pr68180.C: Likewise.
- g++.dg/cpp1y/pr77830.C: Likewise.
- g++.dg/ubsan/pr63956.C: Likewise.

5967b28b462 Add quotes for constexpr keyword.
gcc/cp/ChangeLog | 23 +++++++++++++
gcc/cp/class.c | 4 +--
gcc/cp/constexpr.c | 35 ++++++++++----------
gcc/cp/decl.c | 10 +++---
gcc/cp/error.c | 4 +--
gcc/cp/method.c | 6 ++--
gcc/cp/parser.c | 2 +-
gcc/testsuite/ChangeLog | 35 ++++++++++++++++++++
gcc/testsuite/g++.dg/cpp0x/constexpr-48089.C | 2 +-
gcc/testsuite/g++.dg/cpp0x/constexpr-50060.C | 2 +-
gcc/testsuite/g++.dg/cpp0x/constexpr-60049.C | 10 +++---
gcc/testsuite/g++.dg/cpp0x/constexpr-70323.C | 4 +--
gcc/testsuite/g++.dg/cpp0x/constexpr-70323a.C | 4 +--
gcc/testsuite/g++.dg/cpp0x/constexpr-cast.C | 2 +-
gcc/testsuite/g++.dg/cpp0x/constexpr-diag3.C | 10 +++---
gcc/testsuite/g++.dg/cpp0x/constexpr-ex1.C | 6 ++--
gcc/testsuite/g++.dg/cpp0x/constexpr-generated1.C | 2 +-
gcc/testsuite/g++.dg/cpp0x/constexpr-ice16.C | 4 +--
gcc/testsuite/g++.dg/cpp0x/constexpr-ice5.C | 2 +-
gcc/testsuite/g++.dg/cpp0x/constexpr-incomplete2.C | 2 +-
gcc/testsuite/g++.dg/cpp0x/constexpr-neg1.C | 6 ++--
gcc/testsuite/g++.dg/cpp0x/constexpr-recursion.C | 4 +--
gcc/testsuite/g++.dg/cpp0x/constexpr-shift1.C | 14 ++++----
gcc/testsuite/g++.dg/cpp0x/static_assert10.C | 2 +-
gcc/testsuite/g++.dg/cpp1y/constexpr-70265-1.C | 2 +-
gcc/testsuite/g++.dg/cpp1y/constexpr-70265-2.C | 2 +-
gcc/testsuite/g++.dg/cpp1y/constexpr-79655.C | 8 ++---
gcc/testsuite/g++.dg/cpp1y/constexpr-new.C | 4 +--
gcc/testsuite/g++.dg/cpp1y/constexpr-return2.C | 2 +-
gcc/testsuite/g++.dg/cpp1y/constexpr-shift1.C | 2 +-
gcc/testsuite/g++.dg/cpp1y/constexpr-throw.C | 2 +-
gcc/testsuite/g++.dg/cpp1y/pr63996.C | 3 +-
gcc/testsuite/g++.dg/cpp1y/pr68180.C | 2 +-
gcc/testsuite/g++.dg/cpp1y/pr77830.C | 4 +--
gcc/testsuite/g++.dg/cpp1z/constexpr-lambda6.C | 2 +-
gcc/testsuite/g++.dg/ext/constexpr-vla1.C | 2 +-
gcc/testsuite/g++.dg/ext/constexpr-vla2.C | 4 +--
gcc/testsuite/g++.dg/ext/constexpr-vla3.C | 2 +-
gcc/testsuite/g++.dg/ubsan/pr63956.C | 38 +++++++++++-----------
39 files changed, 166 insertions(+), 108 deletions(-)

Upstream: gcc.gnu.org


  • Share