public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/64649] New: regex_traits::lookup_classname() only works with random access iterators
@ 2015-01-17 21:11 redi at gcc dot gnu.org
  2015-01-17 21:17 ` [Bug libstdc++/64649] " redi at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2015-01-17 21:11 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64649

            Bug ID: 64649
           Summary: regex_traits::lookup_classname() only works with
                    random access iterators
           Product: gcc
           Version: 4.9.3
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org

#include <regex>
#include <forward_list>

int main()
{
  std::forward_list<char> f{ 'A' };
  std::regex_traits<char>{}.lookup_collatename(f.begin(), f.end());
}

This function should work with ForwardIterators, but it fails because of line
300 in bits/regex.tcc

      std::string __s(__last - __first, '?');


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-07-20 11:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-17 21:11 [Bug libstdc++/64649] New: regex_traits::lookup_classname() only works with random access iterators redi at gcc dot gnu.org
2015-01-17 21:17 ` [Bug libstdc++/64649] " redi at gcc dot gnu.org
2015-01-19 23:00 ` timshen at gcc dot gnu.org
2015-01-19 23:13 ` timshen at gcc dot gnu.org
2015-01-22  5:03 ` timshen at gcc dot gnu.org
2015-02-03  9:00 ` timshen at gcc dot gnu.org
2015-03-09  6:53 ` timshen at gcc dot gnu.org
2023-07-20 11:45 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).