Bug 904652 - g++ segmentation fault with tricky templates
Summary: g++ segmentation fault with tricky templates
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 18
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-26 20:13 UTC by Dan Stahlke
Modified: 2013-01-31 13:58 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-31 13:58:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Compiling this with g++ gives a segmentation fault. (370 bytes, text/x-c++src)
2013-01-26 20:13 UTC, Dan Stahlke
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 56163 0 None None None Never

Description Dan Stahlke 2013-01-26 20:13:26 UTC
Created attachment 688161 [details]
Compiling this with g++ gives a segmentation fault.

Description of problem:
Compiling the attached program causes g++ to segfault.

Version-Release number of selected component (if applicable):
g++ (GCC) 4.7.2 20121109 (Red Hat 4.7.2-8)

How reproducible:
g++ gcc-segfault.cc

Steps to Reproduce:
1. Run "g++ gcc-segfault.cc"
2.
3.
  
Actual results:
g++: internal compiler error: Segmentation fault (program cc1plus)

Expected results:
No segfault.

Additional info:

Comment 1 Dan Stahlke 2013-01-31 12:17:21 UTC
This also crashes clang++.  Should I file a second bug report for that, or is it likely to be a common cause?

Comment 2 Jakub Jelinek 2013-01-31 13:58:17 UTC
Tracking upstream, instead of tricky I'd say invalid, but let's wait for Jason's confirmation.


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