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)
Try to compile attached preprocessed source file.
Steps to Reproduce:
1. Compile attached preprocessed source file.
internal compiler error
successful build or normal error report produced by compiler about my sources.
Also reproducible with gcc-4.6.0-10 from Fedora Updates repository.
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.
Created attachment 523336 [details]
source that produce error
Most valuable sources that produce internal compiler error
Created attachment 523337 [details]
refined sources that compile successfully
That code does almost the same, but builds OK
This is internal compiler error on invalid source, so deferring that to upstream only.