Bug 1005289 - internal compiler error: unexpected expression ‘letters’ of kind template_parm_index
Summary: internal compiler error: unexpected expression ‘letters’ of kind template_par...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-06 15:19 UTC by Krzesimir Nowak
Modified: 2013-09-18 15:51 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-18 15:51:22 UTC
Type: Bug


Attachments (Terms of Use)
Test code causing ICE. (506 bytes, text/x-c++src)
2013-09-06 15:19 UTC, Krzesimir Nowak
no flags Details
Preprocessed code causing ICE. (722 bytes, text/x-csrc)
2013-09-06 15:20 UTC, Krzesimir Nowak
no flags Details


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

Description Krzesimir Nowak 2013-09-06 15:19:09 UTC
Created attachment 794823 [details]
Test code causing ICE.

Description of problem:

When compiling the attached file, g++ ICEs.

Version-Release number of selected component (if applicable):
g++ (GCC) 4.8.1 20130603 (Red Hat 4.8.1-1)

How reproducible:
Always.

Steps to Reproduce:
1. Get the test.cc attachement
2. g++ -c -std=c++11 -DBUGBUGBUG test.cc (I used /usr/bin/g++ to avoid using ccache).

Actual results:
test.cc:32:21: internal compiler error: unexpected expression ‘letters’ of kind template_parm_index
 Str str(ToStr< Foo >::get ());
                     ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccJKCZf6.out file, please attach this to your bugreport.

Expected results:
No output expected.

Additional info:
When BUGBUGBUG macro is undefined, the compilation completes successfully.

Comment 1 Krzesimir Nowak 2013-09-06 15:20:35 UTC
Created attachment 794824 [details]
Preprocessed code causing ICE.

Attached also preprocessed code generated because of ICE.

Comment 2 Jakub Jelinek 2013-09-18 15:51:22 UTC
Tracking upstram.


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