[forwarded from http://bugs.debian.org/388626]
Attached preprocessed source. removing the template op< near the end (introduced to find the types of lhs and rhs in the error message that results) makes the ICE go away. $ g++ -c 388263.ii /home/marc/KDAB/CVS/SWG/trinav/ascshared/util/stl_util.h: In member function 'bool stl_util::less_member_2_m<T, R>::operator()(const boost::shared_ptr<const T>&, const R_alt&) const [with R_alt = AscShared::GuiModel::AttributeDescriptor, T = ComputedAttribute, R = AscShared::GuiModel::AttributeDescriptor ()()const]': /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h:2845: instantiated from '_ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator<boost::shared_ptr<ComputedAttribute>*, std::vector<boost::shared_ptr<ComputedAttribute>, std::allocator<boost::shared_ptr<ComputedAttribute> > > >, _Tp = AscShared::GuiModel::AttributeDescriptor, _Compare = stl_util::less_member_2_m<ComputedAttribute, AscShared::GuiModel::AttributeDescriptor ()()const>]' object.cpp:81: instantiated from here /home/marc/KDAB/CVS/SWG/trinav/ascshared/util/stl_util.h:181: internal compiler error: in gimplify_expr, at gimplify.c:4513 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. -- Summary: [4.0/4.1/4.2 regression] ICE in make_decl_rtl, at varasm.c:883 Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: debian-gcc at lists dot debian dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29225