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

JiYouguo <jiyouguo at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jiyouguo at gmail dot com

--- Comment #18 from JiYouguo <jiyouguo at gmail dot com> ---

(In reply to Pawel Sikora from comment #17)
Would you mind telling how to patch a bug? I just can't find the file
simple.cc.
> pure gcc 4.9.0 20140106 still fails:
> 
> 
> Breakpoint 2, main () at pr53477.cpp:15
> (gdb) p wordBitsetMap
> $1 = std::map with 1 elementsTraceback (most recent call last):
>   File
> "/home/pawels/gcc/4.9/share/gcc-4.9.0/python/libstdcxx/v6/printers.py", line
> 438, in children
>     rep_type = find_type(self.val.type, '_Rep_type')
>   File
> "/home/pawels/gcc/4.9/share/gcc-4.9.0/python/libstdcxx/v6/printers.py", line
> 54, in find_type
>     raise ValueError, "Cannot find type %s::%s" % (str(orig), name)
> ValueError: Cannot find type const std::map<unsigned int, std::map<unsigned
> int, std::set<unsigned int, std::__7::less<unsigned int>,
> std::__7::allocator<unsigned int> >, std:
> :__7::less<unsigned int>, std::__7::allocator<std::__7::pair<unsigned int
> const, std::set<unsigned int, std::__7::less<unsigned int>,
> std::__7::allocator<unsigned int> > > > >
> , std::__7::less<unsigned int>, std::__7::allocator<std::__7::pair<unsigned
> int const, std::map<unsigned int, std::set<unsigned int,
> std::__7::less<unsigned int>, std::__7::al
> locator<unsigned int> >, std::__7::less<unsigned int>,
> std::__7::allocator<std::__7::pair<unsigned int const, std::set<unsigned
> int, std::__7::less<unsigned int>, std::__7::al
> locator<unsigned int> > > > > > > >::mapped_type::_Rep_type
> 
> 
> 
> patch propses in comment #10 works for me:
> 
> Breakpoint 2, main () at pr53477.cpp:15
> (gdb) p wordBitsetMap
> $1 = std::map with 1 elements = {
>   [3] = std::set with 2 elements = {
>     [0] = 1,
>     [1] = 5
>   }
> }

Reply via email to