Update get_cxx_dialect_name to handle cxx29 added by
commit 0c5c6249a2e9a75d2e7d1c6c434487c8dc077130
Author: Jakub Jelinek <[email protected]>
Date: Tue Jun 16 22:24:57 2026 +0200
c++, libcpp: Add -std=c++2[9d] and -std=gnu++2[9d] options
PR c++/125851
* name-lookup.cc (get_cxx_dialect_name): Handle cxx29.
--
H.J.
From 3843dc46151b62c488f3f1de14c8e169931f838e Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <[email protected]>
Date: Wed, 17 Jun 2026 11:23:14 +0800
Subject: [PATCH] c++: Update get_cxx_dialect_name for cxx29
Update get_cxx_dialect_name to handle cxx29 added by
commit 0c5c6249a2e9a75d2e7d1c6c434487c8dc077130
Author: Jakub Jelinek <[email protected]>
Date: Tue Jun 16 22:24:57 2026 +0200
c++, libcpp: Add -std=c++2[9d] and -std=gnu++2[9d] options
PR c++/125851
* name-lookup.cc (get_cxx_dialect_name): Handle cxx29.
Signed-off-by: H.J. Lu <[email protected]>
---
gcc/cp/name-lookup.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/cp/name-lookup.cc b/gcc/cp/name-lookup.cc
index e12e37c3515..60a6e6f4430 100644
--- a/gcc/cp/name-lookup.cc
+++ b/gcc/cp/name-lookup.cc
@@ -7555,6 +7555,8 @@ get_cxx_dialect_name (enum cxx_dialect dialect)
return "C++23";
case cxx26:
return "C++26";
+ case cxx29:
+ return "C++29";
}
}
--
2.54.0