]> git.ipfire.org Git - thirdparty/gcc.git/commit
P08184R0: Generalizing the Range-Based For Loop
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Mar 2016 19:57:54 +0000 (19:57 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Mar 2016 19:57:54 +0000 (19:57 +0000)
commit39e2f1a461b97f5bba555a4577cf7c265bb8e99d
tree34ab5c82e313155f42a5d0b7684c3fda07a35970
parente947f9c35eee2d8d464201a684f0144f33817a57
P08184R0: Generalizing the Range-Based For Loop

* parser.c (cp_convert_range_for): Set the type of __end separately.
(cp_parser_perform_range_for_lookup): Allow different begin/end
types if they are comparable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234191 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp0x/range-for5.C
gcc/testsuite/g++.dg/cpp1z/range-for1.C [new file with mode: 0644]