Bug 41740 - [4.5 Regression] ICE in ipcp_analyze_node, at ipa-cp.c:183
Summary: [4.5 Regression] ICE in ipcp_analyze_node, at ipa-cp.c:183
Status: RESOLVED DUPLICATE of bug 40556
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: 4.5.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2009-10-18 12:22 UTC by Denis Onischenko
Modified: 2009-10-23 22:28 UTC (History)
5 users (show)

See Also:
Host: x86_64-cross-linux-gnu
Target: x86_64-unknown-linux-gnu
Build: x86_64-cross-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2009-10-18 14:37:25


Attachments
preprocessed file (207.74 KB, application/x-gzip)
2009-10-18 12:24 UTC, Denis Onischenko
Details
console output (982 bytes, text/plain)
2009-10-18 12:24 UTC, Denis Onischenko
Details
compiler output (142.43 KB, application/x-gzip)
2009-10-18 12:26 UTC, Denis Onischenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Onischenko 2009-10-18 12:22:24 UTC
assembler error occurs when compiling this file with -O2 option. Without -O2 	
option the file was compiled without error. 
	
Revision 152496 does not yet have this error. Revision of 152600 already has this error.
Comment 1 Denis Onischenko 2009-10-18 12:24:36 UTC
Created attachment 18817 [details]
preprocessed file
Comment 2 Denis Onischenko 2009-10-18 12:24:59 UTC
Created attachment 18818 [details]
console output
Comment 3 Denis Onischenko 2009-10-18 12:26:01 UTC
Created attachment 18819 [details]
compiler output
Comment 4 Denis Onischenko 2009-10-18 12:30:44 UTC
Revision of 152560 has this error too
Comment 5 Richard Biener 2009-10-18 13:54:13 UTC
I get

> ./g++ -B. -c Affine_Space.ii -O2
Affine_Space.cc:426:1: internal compiler error: in ipcp_analyze_node, at ipa-cp.c:183
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

which may explain your later error (or not).

Reducing.
Comment 6 Richard Biener 2009-10-18 14:37:25 UTC
namespace std {                                                                 
    template<typename _CharT> class basic_ostream;
    typedef basic_ostream<char> ostream;                                        
    extern ostream cerr;
};                                                                              
class Affine_Space
{                                                                               
  void print() const;
};                                                                              
std::ostream& operator<<(std::ostream& s, const Affine_Space& gr);
void Affine_Space::print() const                                                
{ 
  std::cerr << *this;                                                           
}
std::ostream&                                                                   operator<<(std::ostream& s, const Affine_Space& gr)
{                                                                               
  s << gr;
  return s;                                                                     
}
Comment 7 Richard Biener 2009-10-18 14:39:40 UTC
Maybe also caused by honza.
Comment 8 Martin Jambor 2009-10-20 10:11:59 UTC
This looks like PR 40556.
Comment 9 Denis Onischenko 2009-10-23 21:50:19 UTC
In revision 153504 this error is no longer reproduced
Comment 10 Richard Biener 2009-10-23 22:28:10 UTC
So it was indeed a dup.

*** This bug has been marked as a duplicate of 40556 ***