Bug 738516
Summary: | internal compiler error | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Alexander Gagarin <unientity> | ||||||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||||||
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
Severity: | high | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | 15 | CC: | jakub | ||||||||
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: | 2011-10-04 12:21:53 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
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. |
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: