diff options
| author | Jason Merrill <jason@redhat.com> | 2025-02-11 13:51:32 +0100 |
|---|---|---|
| committer | Jason Merrill <jason@redhat.com> | 2025-02-12 00:07:51 +0100 |
| commit | 556248d7d2cf557423993eb68f6a55ae6bda0cee (patch) | |
| tree | 11a564ef7dedb3fd21280a96941c08da04615947 /libgomp | |
| parent | 0d2a5f3cb715fd95f1fa4a13b5d67c7eea28f178 (diff) | |
c++: don't default -frange-for-ext-temps in -std=gnu++20 [PR188574]
Since -frange-for-ext-temps has been causing trouble, let's not enable it
by default in pre-C++23 GNU modes for GCC 15, and also allow disabling it in
C++23 and up.
PR c++/188574
gcc/c-family/ChangeLog:
* c-opts.cc (c_common_post_options): Only enable
-frange-for-ext-temps by default in C++23.
gcc/ChangeLog:
* doc/invoke.texi: Adjust -frange-for-ext-temps documentation.
gcc/testsuite/ChangeLog:
* g++.dg/cpp23/range-for3.C: Use -frange-for-ext-temps.
* g++.dg/cpp23/range-for4.C: Adjust expected result.
libgomp/ChangeLog:
* testsuite/libgomp.c++/range-for-4.C: Adjust expected result.
Diffstat (limited to 'libgomp')
| -rw-r--r-- | libgomp/testsuite/libgomp.c++/range-for-4.C | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgomp/testsuite/libgomp.c++/range-for-4.C b/libgomp/testsuite/libgomp.c++/range-for-4.C index 3c10e7349af..aa6e4da523c 100644 --- a/libgomp/testsuite/libgomp.c++/range-for-4.C +++ b/libgomp/testsuite/libgomp.c++/range-for-4.C @@ -3,5 +3,5 @@ // { dg-additional-options "-std=gnu++17" } // { dg-require-effective-target tls_runtime } -#define RANGE_FOR_EXT_TEMPS 1 +#define RANGE_FOR_EXT_TEMPS 0 #include "range-for-1.C" |
