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:
parent
504450c708
commit
bc56d27de9
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user