[Bug libstdc++/31440] New: libstdc++-g++-v3 discarded qualifiers

malitzke at metronets dot com gcc-bugzilla@gcc.gnu.org
Mon Apr 2 20:00:00 GMT 2007


Making all in Core
make[3]: Entering directory
`/var/tmp/portage/dev-lang/maude-2.1.1-r2/work/maude-2.1.1/src/Core'
if g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../../src/Utility
-I../../src/Interface -I../../src/Variable -I../../src/FullCompiler   -O2 -pipe
-mcpu=G4 -fomit-frame-pointer -Wno-deprecated -MT libcore_a-memoTable.o -MD -MP
-MF ".deps/libcore_a-memoTable.Tpo" \
          -c -o libcore_a-memoTable.o `test -f 'memoTable.cc' || echo
'./'`memoTable.cc; \
        then mv ".deps/libcore_a-memoTable.Tpo" ".deps/libcore_a-memoTable.Po";
\
        else rm -f ".deps/libcore_a-memoTable.Tpo"; exit 1; \
        fi
/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include/g++-v3/bits/stl_tree.h: In
member function 'typename std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
_Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
_Alloc>::_M_lower_bound(const std::_Rb_tree_node<_Val>*, const
std::_Rb_tree_node<_Val>*, const _Key&) const [with _Key = DagNode*, _Val =
std::pair<DagNode* const, DagNode*>, _KeyOfValue =
std::_Select1st<std::pair<DagNode* const, DagNode*> >, _Compare =
MemoTable::dagNodeLt, _Alloc = std::allocator<std::pair<DagNode* const,
DagNode*> >]':
/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include/g++-v3/bits/stl_tree.h:1302:
  instantiated from 'typename std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
_Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
_Alloc>::find(const _Key&) [with _Key = DagNode*, _Val = std::pair<DagNode*
const, DagNode*>, _KeyOfValue = std::_Select1st<std::pair<DagNode* const,
DagNode*> >, _Compare = MemoTable::dagNodeLt, _Alloc =
std::allocator<std::pair<DagNode* const, DagNode*> >]'
/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include/g++-v3/bits/stl_map.h:541:
  instantiated from 'typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>,
std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, typename
_Alloc::rebind<std::pair<const _Key, _Tp> >::other>::iterator std::map<_Key,
_Tp, _Compare, _Alloc>::find(const _Key&) [with _Key = DagNode*, _Tp =
DagNode*, _Compare = MemoTable::dagNodeLt, _Alloc =
std::allocator<std::pair<DagNode* const, DagNode*> >]'
memoTable.cc:76:   instantiated from here
/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include/g++-v3/bits/stl_tree.h:938:
error: passing 'const MemoTable::dagNodeLt' as 'this' argument of 'bool
MemoTable::dagNodeLt::operator()(const DagNode*, const DagNode*)' discards
qualifiers
make[3]: *** [libcore_a-memoTable.o] Error 1
make[3]: Leaving directory
`/var/tmp/portage/dev-lang/maude-2.1.1-r2/work/maude-2.1.1/src/Core'

Without direction I am not swift enough to characterize this further.


-- 
           Summary: libstdc++-g++-v3 discarded qualifiers
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: malitzke at metronets dot com
 GCC build triplet: powerpc-unknown-linux-gnu
  GCC host triplet: powerpc-unknown-linux-gnu
GCC target triplet: powerpc-unknown-linux-gnu


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



More information about the Gcc-bugs mailing list