Bug 740129 - Segmentation fault on improperly nested C++0x initializers
Summary: Segmentation fault on improperly nested C++0x initializers
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 15
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-21 02:41 UTC by Clem Dickey
Modified: 2011-10-04 11:21 UTC (History)
1 user (show)

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


Attachments (Terms of Use)
preprocessed source code to reproduce bug (196.88 KB, application/octet-stream)
2011-09-21 02:41 UTC, Clem Dickey
no flags Details

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.


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