]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Update C++ version check in rust-lang.cc
authorOwen Avery <powerboat9.gamer@gmail.com>
Tue, 24 Jun 2025 03:10:34 +0000 (23:10 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 5 Aug 2025 14:36:51 +0000 (16:36 +0200)
gcc/rust/ChangeLog:

* rust-lang.cc: Move version check from C++11 to C++14.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/rust-lang.cc

index 35003ab327b7777a148905822a051cb8312edc51..93ce041c2529f627cccea4c5e186660436679cbc 100644 (file)
 // 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)