diff options
author | David Malcolm <dmalcolm@redhat.com> | 2024-12-06 11:33:59 -0500 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2024-12-06 11:33:59 -0500 |
commit | 31c08879dcc750275a59d73aefe2e1fc4ed4957d (patch) | |
tree | 97d12a47167322fca66f62251fa93fbe110340a1 /gcc/config | |
parent | 4f5b7f1b738f7206402d008e52718abfd78e2a07 (diff) | |
download | gcc-31c08879dcc750275a59d73aefe2e1fc4ed4957d.zip gcc-31c08879dcc750275a59d73aefe2e1fc4ed4957d.tar.gz gcc-31c08879dcc750275a59d73aefe2e1fc4ed4957d.tar.bz2 |
c++: handle misspelled concepts and missing #include <concepts>
gcc/cp/ChangeLog:
* name-lookup.cc (suggest_alternative_in_explicit_scope):
Gracefully handle non-namespaces, such as scoped enums.
* parser.cc (cp_parser_name_lookup_error): Provide
a name_hint for the case where we're in an explicit scope.
* std-name-hint.gperf: Add <concepts>.
* std-name-hint.h: Regenerate.
gcc/testsuite/ChangeLog:
* g++.dg/concepts/missing-header.C: New test.
* g++.dg/concepts/misspelled-concept.C: New test.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/config')
0 files changed, 0 insertions, 0 deletions