diff options
author | Jason Merrill <jason@redhat.com> | 2024-11-11 19:27:52 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2024-11-14 11:34:06 -0500 |
commit | e8ebc91615a088b47db6e6b000b7b154b267ea0e (patch) | |
tree | f52c55615ceb85e0cae3a3c5c52ce37c8f39cc36 /gcc | |
parent | 236104908257d779b06894379f99e007a1c4c897 (diff) | |
download | gcc-e8ebc91615a088b47db6e6b000b7b154b267ea0e.zip gcc-e8ebc91615a088b47db6e6b000b7b154b267ea0e.tar.gz gcc-e8ebc91615a088b47db6e6b000b7b154b267ea0e.tar.bz2 |
c++: module dialect tweak
Coroutines have been enabled by -std=c++20 since GCC 11.
gcc/cp/ChangeLog:
* module.cc (module_state_config::get_dialect): Expect coroutines in
C++20.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/module.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc index 4eefb2d..fe9cdd9 100644 --- a/gcc/cp/module.cc +++ b/gcc/cp/module.cc @@ -15166,9 +15166,10 @@ module_state_config::get_dialect () flag_exceptions ? "" : "/no-exceptions", flag_rtti ? "" : "/no-rtti", flag_new_inheriting_ctors ? "" : "/old-inheriting-ctors", - /* C++ 20 implies concepts. */ + /* C++ 20 implies concepts and coroutines. */ cxx_dialect < cxx20 && flag_concepts ? "/concepts" : "", - flag_coroutines ? "/coroutines" : "", + (cxx_dialect < cxx20 && flag_coroutines + ? "/coroutines" : ""), flag_module_implicit_inline ? "/implicit-inline" : "", flag_contracts ? "/contracts" : "", NULL); |