This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16383] New: internal compiler error: in generate_element_copy, at tree-sra.c:1466
- From: "larsbj at gullik dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jul 2004 12:23:11 -0000
- Subject: [Bug c++/16383] New: internal compiler error: in generate_element_copy, at tree-sra.c:1466
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I get an ICE when compiling this with -O1:
#include <boost/signals/signal0.hpp>
#include <boost/bind.hpp>
struct Impl {
Impl();
void monitorfile() {}
boost::signal0<void> timeout;
};
Impl::Impl()
{
timeout.connect(boost::bind(&Impl::monitorfile, this));
}
If I compile whith -O0 then I don't get the ICE.
g++ --version
g++ (GCC) 3.5.0 20040706 (experimental)
g++ -O -c FM.ii
../../boost/boost/function/function_template.hpp: In static member function
`static boost::detail::function::unusable
boost::detail::function::void_function_obj_invoker0<FunctionObj, R>::invoke
(boost::detail::function::any_pointer) [with FunctionObj =
boost::_bi::bind_t<void, boost::_mfi::mf0<void, Impl>,
boost::_bi::list1<boost::_bi::value<Impl*> > >, R = void]':
../../boost/boost/function/function_template.hpp:126: instantiated from
`boost::function0<R, Allocator>::function0(Functor, typename
boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::val
ue>::value, int>::type) [with Functor = boost::_bi::bind_t<void,
boost::_mfi::mf0<void, Impl>, boost::_bi::list1<boost::_bi::value<Impl*> > >,
R = void, Allocator = std::allocator<boost::function_base>]'
../../boost/boost/signals/slot.hpp:102: instantiated from
`boost::slot<SlotFunction>::slot(const F&) [with F = boost::_bi::bind_t<void,
boost::_mfi::mf0<void, Impl>, boost::_bi::list1<boost::_bi::value<Impl*> > >,
SlotFunction = boost::function0<void, std::allocator<boost::function_base> >]'
FM.C:12: instantiated from here
../../boost/boost/function/function_template.hpp:126: internal compiler error:
in generate_element_copy, at tree-sra.c:1466
--
Summary: internal compiler error: in generate_element_copy, at
tree-sra.c:1466
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: larsbj at gullik dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16383