C++: Enable c++2b module mode [PR 99436]

This adds support for c++23 mode to modules, and enables such testing.

	PR c++/99436
	gcc/cp/
	* name-lookup.c (get_cxx_dialect_name): Add cxx23.
	gcc/testsuite/
	* g++.dg/modules/modules.exp (MOD_STD_LIST): Add 2b.
This commit is contained in:
Nathan Sidwell 2021-03-08 11:55:26 -08:00
parent 504450c708
commit bc56d27de9
2 changed files with 3 additions and 1 deletions

View File

@ -6963,6 +6963,8 @@ get_cxx_dialect_name (enum cxx_dialect dialect)
return "C++17";
case cxx20:
return "C++20";
case cxx23:
return "C++23";
}
}

View File

@ -35,7 +35,7 @@ if ![info exists DEFAULT_CXXFLAGS] then {
set DEFAULT_CXXFLAGS " -pedantic-errors -Wno-long-long"
}
set DEFAULT_MODFLAGS $DEFAULT_CXXFLAGS
set MOD_STD_LIST { 17 2a }
set MOD_STD_LIST { 17 2a 2b }
dg-init