[Bug libstdc++/53006] libstdc++-prettyprinters/shared_ptr.cc FAILs

tromey at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Apr 16 18:02:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53006

--- Comment #2 from Tom Tromey <tromey at gcc dot gnu.org> 2012-04-16 18:01:17 UTC ---
(In reply to comment #0)

>     match = self.compiled_rx.match(typename)

>     print type(typename)
> <type 'NoneType'>

This is very odd.  The code in context:

        typename = self.get_basic_type(val.type)
        if not typename:
            return None

        # All the types we match are template types, so we can use a
        # dictionary.
        match = self.compiled_rx.match(typename)

If typename is None, we should have taken the "return None" branch.

I tend to agree it is a python problem as you stated in comment #1.



More information about the Gcc-bugs mailing list