Bug 1005289

Summary: internal compiler error: unexpected expression ‘letters’ of kind template_parm_index
Product: [Fedora] Fedora Reporter: Krzesimir Nowak <qdlacz>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: jakub, law
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: 2013-09-18 15:51:22 UTC Type: Bug
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
Test code causing ICE.
none
Preprocessed code causing ICE. none

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.