Bug 838261 - internal gcc error compiling with boost.python
Summary: internal gcc error compiling with boost.python
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 17
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-08 01:21 UTC by Jack Hall
Modified: 2012-08-10 07:30 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-08-10 07:30:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
preproccessed source code (3.62 MB, application/octet-stream)
2012-07-08 01:21 UTC, Jack Hall
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.