Bug 738516 - internal compiler error
Summary: internal compiler error
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 15
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-15 04:06 UTC by Alexander Gagarin
Modified: 2011-10-04 12:21 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-04 12:21:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
compiler-generated preprocessed source file (834.29 KB, application/zip)
2011-09-15 04:06 UTC, Alexander Gagarin
no flags Details
source that produce error (11.00 KB, application/zip)
2011-09-15 10:01 UTC, Alexander Gagarin
no flags Details
refined sources that compile successfully (11.16 KB, application/zip)
2011-09-15 10:03 UTC, Alexander Gagarin
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 50611 0 None None None Never

Description Alexander Gagarin 2011-09-15 04:06:49 UTC
Created attachment 523296 [details]
compiler-generated preprocessed source file

Description of problem:
internal compiler error happens when compiling a cpp file in my project

Version-Release number of selected component (if applicable):
gcc (GCC) 4.6.1 20110908 (Red Hat 4.6.1-9)

How reproducible:
Try to compile attached preprocessed source file.

Steps to Reproduce:
1. Compile attached preprocessed source file.
  
Actual results:
internal compiler error

Expected results:
successful build or normal error report produced by compiler about my sources.


Additional info:

Comment 1 Alexander Gagarin 2011-09-15 04:15:14 UTC
Also reproducible with gcc-4.6.0-10 from Fedora Updates repository.

Comment 2 Alexander Gagarin 2011-09-15 09:56:18 UTC
The code attached in the bug report is actually incorrect. There are errors in function blue_sky::wpi_strategy_3d::on_boxes_intersect, but compiler doesn't see it and exit with internal error.

I was trying to overcome compiler error and while compiling different variants I saw valid reports about errors in my code printed by gcc, but it finally ended up with internal error.

Finally I found a solution that makes this error disappear. If blue_sky::(anonymous)::wpi_impl don't inherit from blue_sky::wpi_strategy_3d then compilation is successful. But in that case I have to redefine misc helper functions from strategy to "import" them into wpi_impl namespace, which is not so convenient, but works.

I will attach some "human readable" sources related to the problem.

Comment 3 Alexander Gagarin 2011-09-15 10:01:49 UTC
Created attachment 523336 [details]
source that produce error

Most valuable sources that produce internal compiler error

Comment 4 Alexander Gagarin 2011-09-15 10:03:50 UTC
Created attachment 523337 [details]
refined sources that compile successfully

That code does almost the same, but builds OK

Comment 5 Jakub Jelinek 2011-10-04 12:21:53 UTC
This is internal compiler error on invalid source, so deferring that to upstream only.


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