Skip to content
Snippets Groups Projects
Commit 31c08879 authored by David Malcolm's avatar David Malcolm
Browse files

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: default avatarDavid Malcolm <dmalcolm@redhat.com>
parent 4f5b7f1b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment