Bug 720161

Summary: G++ Segmentation Fault on Template Function Instantiation with '--std=c++0x'
Product: [Fedora] Fedora Reporter: Matej <matej.urbas>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: jakub
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-19 15:00:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
The source that segfaults the C++ compiler.
none
Preprocessed version of the above code. none

Description Matej 2011-07-10 13:28:50 UTC
Created attachment 512084 [details]
The source that segfaults the C++ compiler.

Description of problem: I am trying to compile some C++ code (see attachments= and the compiler SEGFAULTS.


Version-Release number of selected component (if applicable): 

Kernel: 2.6.38.8-32.fc15.i686

Name        : gcc-c++
Arch        : i686
Version     : 4.6.0
Release     : 9.fc15


How reproducible: Try to compile the attached source file with the following commands:

  g++ --std=c++0x <sourcefile>


Steps to Reproduce:
1. Download the <sourcefile>
2. Run: g++ --std=c++0x <sourcefile>
3. Behold a SEGFAULT.
  
Actual results: A segmentation fault.


Expected results: C++ 0x defined behaviour.


Additional info:

Comment 1 Matej 2011-07-10 13:29:20 UTC
Created attachment 512085 [details]
Preprocessed version of the above code.

Comment 2 Jakub Jelinek 2011-07-19 15:00:30 UTC
Tracking this upstream.