https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81002
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Wed Jun 7 15:43:35 2017 New Revision: 248989 URL: https://gcc.gnu.org/viewcvs?rev=248989&root=gcc&view=rev Log: PR libstdc++/81002 fix std::basic_regex range constructor PR libstdc++/81002 * include/bits/regex.h (basic_regex): Adjust call to __compile_nfa so iterator type is deduced. * include/bits/regex_compiler.h (__compile_nfa): Reorder template parameters to allow iterator type to be deduced. * testsuite/28_regex/basic_regex/ctors/basic/iter.cc: New. Added: trunk/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/basic/iter.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/bits/regex.h trunk/libstdc++-v3/include/bits/regex_compiler.h