public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/41623]  New: ICE: emit_move_insn at expr.c 3162 when compiling template code.
@ 2009-10-07 18:34 marvin dot decker at gmail dot com
  2009-10-07 18:38 ` [Bug middle-end/41623] " marvin dot decker at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: marvin dot decker at gmail dot com @ 2009-10-07 18:34 UTC (permalink / raw)
  To: gcc-bugs

Internal compiler error reported with target code with linux gcc 4.* series
compilers.

Tried: 4.1.2, 4.2.2, 4.2.4, 4.3.4.  All fail.

Compiles fine in 3.4+.


-- 
           Summary: ICE: emit_move_insn at expr.c 3162 when compiling
                    template code.
           Product: gcc
           Version: 4.2.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: marvin dot decker at gmail dot com


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


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

* [Bug middle-end/41623] ICE: emit_move_insn at expr.c 3162 when compiling template code.
  2009-10-07 18:34 [Bug c++/41623] New: ICE: emit_move_insn at expr.c 3162 when compiling template code marvin dot decker at gmail dot com
@ 2009-10-07 18:38 ` marvin dot decker at gmail dot com
  2009-10-07 19:03 ` [Bug middle-end/41623] [4.3 Regression] " rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: marvin dot decker at gmail dot com @ 2009-10-07 18:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from marvin dot decker at gmail dot com  2009-10-07 18:37 -------
Created an attachment (id=18742)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18742&action=view)
Precompiled source demonstrating error with 4.*


-- 


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


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

* [Bug middle-end/41623] [4.3 Regression] ICE: emit_move_insn at expr.c 3162 when compiling template code.
  2009-10-07 18:34 [Bug c++/41623] New: ICE: emit_move_insn at expr.c 3162 when compiling template code marvin dot decker at gmail dot com
  2009-10-07 18:38 ` [Bug middle-end/41623] " marvin dot decker at gmail dot com
@ 2009-10-07 19:03 ` rguenth at gcc dot gnu dot org
  2010-01-02 16:27 ` rguenth at gcc dot gnu dot org
  2010-05-22 18:34 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-10-07 19:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2009-10-07 19:03 -------
Confirmed.  Reduced testcase:

#include <iostream>
#include <vector>
template< class Iter, class Aggregator > 
inline typename Aggregator::value_type 
aggregate( Iter first, Iter second, Aggregator p_arg ) {
};
template< class A, class V > struct sum_equals {
    typedef V value_type;
};
template< class FUNC > class unary_aggregator {
public:
    typedef FUNC functor_type;
    typedef typename functor_type::value_type value_type;
    unary_aggregator( const value_type & p_init = value_type(),                
                      const functor_type & p_func = functor_type() )     
        :m_value(p_init), m_functor(p_func){
    }
    value_type m_value;
    functor_type m_functor;
};
template< class A, class V > struct accumulate 
: public unary_aggregator< sum_equals< A, V > > {
    accumulate( const V & p_arg = V() )
        :unary_aggregator< sum_equals< A, V > >( p_arg ){
    }
};
int main( int, char ** ) {
    std::vector< float > c_args(3);
    std::cout << aggregate( c_args.begin(), c_args.end(), 
                            accumulate<float, float>(0) ) << std::endl;
}


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |4.3.4
      Known to work|                            |3.4.6 4.4.1 4.5.0
   Last reconfirmed|0000-00-00 00:00:00         |2009-10-07 19:03:07
               date|                            |
            Summary|ICE: emit_move_insn at      |[4.3 Regression] ICE:
                   |expr.c 3162 when compiling  |emit_move_insn at expr.c
                   |template code.              |3162 when compiling template
                   |                            |code.
   Target Milestone|---                         |4.3.5


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


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

* [Bug middle-end/41623] [4.3 Regression] ICE: emit_move_insn at expr.c 3162 when compiling template code.
  2009-10-07 18:34 [Bug c++/41623] New: ICE: emit_move_insn at expr.c 3162 when compiling template code marvin dot decker at gmail dot com
  2009-10-07 18:38 ` [Bug middle-end/41623] " marvin dot decker at gmail dot com
  2009-10-07 19:03 ` [Bug middle-end/41623] [4.3 Regression] " rguenth at gcc dot gnu dot org
@ 2010-01-02 16:27 ` rguenth at gcc dot gnu dot org
  2010-05-22 18:34 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-01-02 16:27 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|4.3.4                       |4.3.4 4.4.0
           Priority|P3                          |P2


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


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

* [Bug middle-end/41623] [4.3 Regression] ICE: emit_move_insn at expr.c 3162 when compiling template code.
  2009-10-07 18:34 [Bug c++/41623] New: ICE: emit_move_insn at expr.c 3162 when compiling template code marvin dot decker at gmail dot com
                   ` (2 preceding siblings ...)
  2010-01-02 16:27 ` rguenth at gcc dot gnu dot org
@ 2010-05-22 18:34 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-22 18:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2010-05-22 18:13 -------
GCC 4.3.5 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.5                       |4.3.6


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


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

* [Bug middle-end/41623] [4.3 Regression] ICE: emit_move_insn at expr.c 3162 when compiling template code.
       [not found] <bug-41623-4@http.gcc.gnu.org/bugzilla/>
@ 2011-06-27 12:11 ` rguenth at gcc dot gnu.org
  0 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-27 12:11 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to work|                            |
         Resolution|                            |FIXED
   Target Milestone|4.3.6                       |4.4.1
      Known to fail|                            |

--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-27 11:55:07 UTC ---
Fixed in 4.4.1.


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

end of thread, other threads:[~2011-06-27 12:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-07 18:34 [Bug c++/41623] New: ICE: emit_move_insn at expr.c 3162 when compiling template code marvin dot decker at gmail dot com
2009-10-07 18:38 ` [Bug middle-end/41623] " marvin dot decker at gmail dot com
2009-10-07 19:03 ` [Bug middle-end/41623] [4.3 Regression] " rguenth at gcc dot gnu dot org
2010-01-02 16:27 ` rguenth at gcc dot gnu dot org
2010-05-22 18:34 ` rguenth at gcc dot gnu dot org
     [not found] <bug-41623-4@http.gcc.gnu.org/bugzilla/>
2011-06-27 12:11 ` rguenth at gcc dot gnu.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).