This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3 PATCH] Implement LWG 2353
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: Ville Voutilainen <ville dot voutilainen at gmail dot com>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 20 Nov 2017 14:16:34 +0000
- Subject: Re: [v3 PATCH] Implement LWG 2353
- Authentication-results: sourceware.org; auth=none
- References: <CAFk2RUbYAVbcBw2P=_+bgiEgAgmMLHm+y5q4YU7aM8dSmb3ejg@mail.gmail.com>
On 19/11/17 02:40 +0200, Ville Voutilainen wrote:
--- /dev/null
+++ b/libstdc++-v3/testsuite/24_iterators/operations/lwg2353.cc
@@ -0,0 +1,26 @@
+// { dg-options "-D_GLIBCXX_CONCEPT_CHECKS" }
+// { dg-do run { target c++11 } }
+
+#include <iterator>
+#include <utility>
+#include <sstream>
+#include <string>
+#include <testsuite_hooks.h>
+
+template<typename Distance, typename InputRange>
+auto
This will FAIL if the test is run with
--target_board=unix/-std=gnu++11
OK for trunk with an explicitly specified return type here.