public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/67440] New: pretty-printing of a const set<foo> fails
@ 2015-09-03  0:18 dje at google dot com
  2015-09-03  0:24 ` [Bug libstdc++/67440] " dje at google dot com
  2015-09-03 10:05 ` redi at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: dje at google dot com @ 2015-09-03  0:18 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67440
           Summary: pretty-printing of a const set<foo> fails
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dje at google dot com
  Target Milestone: ---

Type lookup in the pretty-printer of const set<foo> fails, set<foo> should be
used instead.

With the attached changes to the testcase, before the attached patch, one sees:

Python Exception <type 'exceptions.ValueError'> Cannot find type const
std::__debug::set<int, std::less<int>, std::allocator<int> >::_Rep_type:

Index: testsuite/libstdc++-prettyprinters/simple.cc
===================================================================
--- testsuite/libstdc++-prettyprinters/simple.cc        (revision 227421)
+++ testsuite/libstdc++-prettyprinters/simple.cc        (working copy)
@@ -73,6 +73,9 @@
   std::map<std::string, int>::iterator mpiter = mp.begin();
 // { dg-final { note-test mpiter {{first = "zardoz", second = 23}} } }

+  const std::set<int> const_intset = {2, 3};
+// { dg-final { note-test const_intset {std::set with 2 elements = {[0] = 2,
[1] = 3}} } }
+
   std::set<std::string> sp;
   sp.insert("clownfish");
   sp.insert("barrel");


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

end of thread, other threads:[~2015-09-03 10:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-03  0:18 [Bug libstdc++/67440] New: pretty-printing of a const set<foo> fails dje at google dot com
2015-09-03  0:24 ` [Bug libstdc++/67440] " dje at google dot com
2015-09-03 10:05 ` 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).