This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/64649] regex_traits::lookup_classname() only works with random access iterators
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 17 Jan 2015 21:17:05 +0000
- Subject: [Bug libstdc++/64649] regex_traits::lookup_classname() only works with random access iterators
- Auto-submitted: auto-generated
- References: <bug-64649-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64649
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-01-17
Ever confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Actually it's even worse than that, the next line will only work with pointers
and not even arbitrary random access iterators:
__fctyp.narrow(__first, __last, '?', &*__s.begin());
The signature of ctype<charT>::narrow is
const charT*
ctype<charT>::narrow(const charT*, const charT*, char, char*) const;
So __first and __last are not acceptable arguments.