https://gcc.gnu.org/g:08011fc3d85242efd5b7a53fa8139ac09d6aed09

commit r16-2900-g08011fc3d85242efd5b7a53fa8139ac09d6aed09
Author: Owen Avery <powerboat9.ga...@gmail.com>
Date:   Mon Jun 23 23:10:34 2025 -0400

    gccrs: Update C++ version check in rust-lang.cc
    
    gcc/rust/ChangeLog:
    
            * rust-lang.cc: Move version check from C++11 to C++14.
    
    Signed-off-by: Owen Avery <powerboat9.ga...@gmail.com>

Diff:
---
 gcc/rust/rust-lang.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/rust/rust-lang.cc b/gcc/rust/rust-lang.cc
index 35003ab327b7..93ce041c2529 100644
--- a/gcc/rust/rust-lang.cc
+++ b/gcc/rust/rust-lang.cc
@@ -51,10 +51,10 @@
 // FIXME: test saving intellisense
 #include "options.h"
 
-// version check to stop compiling if c++ isn't c++11 or higher
-#if __cplusplus < 201103
+// version check to stop compiling if c++ isn't c++14 or higher
+#if __cplusplus < 201402
 #error                                                                         
\
-  "GCC Rust frontend requires C++11 or higher. You can compile the g++ 
frontend first and then compile the Rust frontend using that."
+  "GCC Rust frontend requires C++14 or higher. You can compile the g++ 
frontend first and then compile the Rust frontend using that."
 #endif
 // TODO: is this best way to do it? Is it allowed? (should be)

Reply via email to