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

* [Bug c++/16383] internal compiler error: in generate_element_copy, at tree-sra.c:1466
  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 ` larsbj at gullik dot net
  2004-07-06 15:59 ` [Bug tree-optimization/16383] [3.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: larsbj at gullik dot net @ 2004-07-06 12:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From larsbj at gullik dot net  2004-07-06 12:27 -------
Created an attachment (id=6694)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6694&action=view)
Preprocesses source


-- 


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


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

* [Bug tree-optimization/16383] [3.5 Regression] internal compiler error: in generate_element_copy, at tree-sra.c:1466
  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 ` pinskia at gcc dot gnu dot org
  2004-07-06 17:47 ` rth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-06 15:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-06 15:59 -------
I can confirm this on the mainline.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rth at gcc dot gnu dot org
          Component|c++                         |tree-optimization
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |3.5.0
      Known to work|                            |3.4.0
            Summary|internal compiler error: in |[3.5 Regression] internal
                   |generate_element_copy, at   |compiler error: in
                   |tree-sra.c:1466             |generate_element_copy, at
                   |                            |tree-sra.c:1466
   Target Milestone|---                         |3.5.0


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


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

* [Bug tree-optimization/16383] [3.5 Regression] internal compiler error: in generate_element_copy, at tree-sra.c:1466
  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
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-07-06 17:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rth at gcc dot gnu dot org  2004-07-06 17:47 -------
Mine.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rth at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED


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


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

* [Bug tree-optimization/16383] [3.5 Regression] internal compiler error: in generate_element_copy, at tree-sra.c:1466
  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
                   ` (2 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-07-11 17:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-07-11 17:41 -------
Subject: Bug 16383

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rth@gcc.gnu.org	2004-07-11 17:41:52

Modified files:
	gcc            : ChangeLog tree-sra.c tree-ssa-ccp.c tree.c 
	                 tree.h 

Log message:
	PR tree-opt/16383
	* tree-ssa-ccp.c (fold_stmt_r): Split out...
	* tree.c (fields_compatible_p, find_compatible_field): ... new.
	* tree.h (fields_compatible_p, find_compatible_field): Declare.
	* tree-sra.c (sra_hash_tree): Hash fields by offset.
	(sra_elt_eq): Use fields_compatible_p.
	(generate_one_element_ref): Use find_compatible_field.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.4472&r2=2.4473
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-sra.c.diff?cvsroot=gcc&r1=2.19&r2=2.20
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-ccp.c.diff?cvsroot=gcc&r1=2.20&r2=2.21
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.c.diff?cvsroot=gcc&r1=1.394&r2=1.395
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.h.diff?cvsroot=gcc&r1=1.554&r2=1.555



-- 


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


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

* [Bug tree-optimization/16383] [3.5 Regression] internal compiler error: in generate_element_copy, at tree-sra.c:1466
  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
                   ` (3 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-07-11 17:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rth at gcc dot gnu dot org  2004-07-11 17:49 -------
fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug tree-optimization/16383] [3.5 Regression] internal compiler error: in generate_element_copy, at tree-sra.c:1466
  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
                   ` (4 preceding siblings ...)
  2004-07-11 17:49 ` rth at gcc dot gnu dot org
@ 2004-07-12 12:11 ` reichelt at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-07-12 12:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-07-12 12:11 -------
*** Bug 16318 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org


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).