diff options
author | Patrick Palka <ppalka@redhat.com> | 2020-02-10 10:48:27 -0500 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2020-02-10 20:43:49 -0500 |
commit | 91f4fc40bcf666eb57d566198981dc8e8eff9ccb (patch) | |
tree | 3a83045dfc372022e579cc2b7a17764df7651c94 /libcc1/ChangeLog | |
parent | 9053a18fc77781f64ed66d1bd761bdefb68b871a (diff) | |
download | gcc-91f4fc40bcf666eb57d566198981dc8e8eff9ccb.zip gcc-91f4fc40bcf666eb57d566198981dc8e8eff9ccb.tar.gz gcc-91f4fc40bcf666eb57d566198981dc8e8eff9ccb.tar.bz2 |
c++: Improve dump_decl for standard concepts
This patch improves the pretty printing of standard concept definitions in error
messages. In particular, standard concepts are now printed qualified whenever
appropriate, and the "concept" specifier is printed only when the
TFF_DECL_SPECIFIERS flag is specified.
In the below test, the first error message changes from
9:15: error: ‘b’ was not declared in this scope; did you mean ‘concept b’?
to
9:15: error: ‘b’ was not declared in this scope; did you mean ‘a::b’?
gcc/cp/ChangeLog:
* error.c (dump_decl) [CONCEPT_DECL]: Use dump_simple_decl.
(dump_simple_decl): Handle standard concept definitions as well as
variable concept definitions.
gcc/testsuite/ChangeLog:
* g++.dg/cpp2a/concepts6.C: New test.
Diffstat (limited to 'libcc1/ChangeLog')
0 files changed, 0 insertions, 0 deletions