aboutsummaryrefslogtreecommitdiff
path: root/libgcc/enable-execute-stack-empty.c
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2023-09-20 12:09:36 -0400
committerPatrick Palka <ppalka@redhat.com>2023-09-20 12:09:36 -0400
commit75c4b0cde4835b45350da0a5cd82f1d1a0a7a2f1 (patch)
treee5fefd77c7e19b2f90452a353580445621300246 /libgcc/enable-execute-stack-empty.c
parent915574e538322aad5195bc3b6be2a4f85bbd2467 (diff)
downloadgcc-75c4b0cde4835b45350da0a5cd82f1d1a0a7a2f1.zip
gcc-75c4b0cde4835b45350da0a5cd82f1d1a0a7a2f1.tar.gz
gcc-75c4b0cde4835b45350da0a5cd82f1d1a0a7a2f1.tar.bz2
c++: improve class NTTP object pretty printing [PR111471]
1. Move class NTTP object pretty printing to a more general spot in the pretty printer, so that we always print its value instead of its (mangled) name even when it appears outside of a template argument list. 2. Print the type of an class NTTP object alongside its CONSTRUCTOR value, like dump_expr would have done. 3. Don't print const VIEW_CONVERT_EXPR wrappers for class NTTPs. PR c++/111471 gcc/cp/ChangeLog: * cxx-pretty-print.cc (cxx_pretty_printer::expression) <case VAR_DECL>: Handle class NTTP objects by printing their type and value. <case VIEW_CONVERT_EXPR>: Strip const VIEW_CONVERT_EXPR wrappers for class NTTPs. (pp_cxx_template_argument_list): Don't handle class NTTP objects here. gcc/testsuite/ChangeLog: * g++.dg/concepts/diagnostic19.C: New test.
Diffstat (limited to 'libgcc/enable-execute-stack-empty.c')
0 files changed, 0 insertions, 0 deletions