Bug 838261

Summary: internal gcc error compiling with boost.python
Product: [Fedora] Fedora Reporter: Jack Hall <jackwhall7>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 17CC: jakub, law
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-10 07:30:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
preproccessed source code none

Description Jack Hall 2012-07-08 01:21:29 UTC
Created attachment 596835 [details]
preproccessed source code

Description of problem:
gcc spit out an internal compiler error while compiling a function template built from and for boost.python. The function template was a generic wrapper for copying objects, to override the __copy__ special method in python.

Version-Release number of selected component (if applicable):
gcc 4.7
boost 1.48
python 2.7
Fedora 17

How reproducible:
Not sure. Preproccessed source is attached. 

Steps to Reproduce:
1. compile with flags: -std=c++11 -g  -fPIC -I/usr/include/python2.7 -c
  
Actual results:
fernpy.cpp: In function ‘boost::python::api::object std_copy(boost::python::api::object) [with Copyable = clau::Interval]’:
fernpy.cpp:71:23: internal compiler error: in verify_gimple_stmt, at tree-cfg.c:4258

Expected results:
Successful compilation of fernpy.cpp into fernpy.so.


Additional info:

Comment 1 Jakub Jelinek 2012-08-10 07:30:30 UTC
This got fixed by:
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188021
and is now fixed in gcc-c++-4.7.0-7.fc18 and later (and whenever F17 errata will be pushed, it will be fixed there too).