public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16383] New: internal compiler error: in generate_element_copy, at tree-sra.c:1466
@ 2004-07-06 12:23 larsbj at gullik dot net
  2004-07-06 12:28 ` [Bug c++/16383] " larsbj at gullik dot net
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: larsbj at gullik dot net @ 2004-07-06 12:23 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-07-12 12:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-06 12:23 [Bug c++/16383] New: internal compiler error: in generate_element_copy, at tree-sra.c:1466 larsbj at gullik dot net
2004-07-06 12:28 ` [Bug c++/16383] " larsbj at gullik dot net
2004-07-06 15:59 ` [Bug tree-optimization/16383] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-07-06 17:47 ` rth at gcc dot gnu dot org
2004-07-11 17:41 ` cvs-commit at gcc dot gnu dot org
2004-07-11 17:49 ` rth at gcc dot gnu dot org
2004-07-12 12:11 ` reichelt at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).