Bug 740129

Summary: Segmentation fault on improperly nested C++0x initializers
Product: [Fedora] Fedora Reporter: Clem Dickey <clemd>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 15CC: jakub
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-04 11:21:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
preprocessed source code to reproduce bug none

Description Clem Dickey 2011-09-21 02:41:00 UTC
Created attachment 524118 [details]
preprocessed source code to reproduce bug

Description of problem:

Improperly nested braces and parentheses in a C++ new-style initialization statement cause a seg fault in the compiler.

Version-Release number of selected component (if applicable): gcc-4.6.0-10.fc15

How reproducible: Deterministic.

Steps to Reproduce:
1. compile attached source
Actual results:

../visitor-rank-map-inserter.C: In function ‘void<unnamed>::get_xx_type()’:
../visitor-rank-map-inserter.C:100:6: internal compiler error: Segmentation fault

Expected results: Some sort of syntax error.

Comment 1 Jakub Jelinek 2011-10-04 11:21:19 UTC
This only ICEs in 4.5.x (WONTFIX), works just fine with 4.6.0-10.fc15 as well as 4.6.1-9.fc15.