This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for range-for tweak
- From: Jason Merrill <jason at redhat dot com>
- To: Florian Weimer <fw at deneb dot enyo dot de>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 14 Mar 2016 22:57:25 -0400
- Subject: Re: C++ PATCH for range-for tweak
- Authentication-results: sourceware.org; auth=none
- References: <56E717A7 dot 4020405 at redhat dot com> <87r3fcych2 dot fsf at mid dot deneb dot enyo dot de>
On 03/14/2016 05:30 PM, Florian Weimer wrote:
* Jason Merrill:
P08184R0: Generalizing the Range-Based For Loop
How can one resolve this reference? It's obviously not a PR number in
GCC Bugzilla.
I found this after some searching:
<http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0184r0.html>
But it lacks the additional â8â.
Oops, typo. Fixed, along with adjusting the feature-test macro.
commit 83c74d69d3cc41bc764d75d52effadd2802140ec
Author: Jason Merrill <jason@redhat.com>
Date: Mon Mar 14 22:55:55 2016 -0400
* c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
diff --git a/gcc/c-family/c-cppbuiltin.c b/gcc/c-family/c-cppbuiltin.c
index 19999c7..dc1f426 100644
--- a/gcc/c-family/c-cppbuiltin.c
+++ b/gcc/c-family/c-cppbuiltin.c
@@ -871,7 +871,7 @@ c_cpp_builtins (cpp_reader *pfile)
cpp_define (pfile, "__cpp_namespace_attributes=201411");
cpp_define (pfile, "__cpp_enumerator_attributes=201411");
cpp_define (pfile, "__cpp_nested_namespace_definitions=201411");
- cpp_define (pfile, "__cpp_fold_expressions=201411");
+ cpp_define (pfile, "__cpp_fold_expressions=201603");
cpp_define (pfile, "__cpp_nontype_template_args=201411");
}
if (flag_concepts)