This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47302] New: ICE: same canonical type node for different types char [(A<int>::value ? 1 : 2)] and char [1] with -fabi-version=1
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 15 Jan 2011 01:24:00 +0000
- Subject: [Bug c++/47302] New: ICE: same canonical type node for different types char [(A<int>::value ? 1 : 2)] and char [1] with -fabi-version=1
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47302
Summary: ICE: same canonical type node for different types char
[(A<int>::value ? 1 : 2)] and char [1] with
-fabi-version=1
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 22971
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22971
reduced testcase (from g++.dg/template/array11.C)
Compiler output:
$ gcc -fabi-version=1 testcase.C
testcase.C:10:25: internal compiler error: same canonical type node for
different types char [(ffff<int>::value ? 1 : 2)] and char [1]
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Tested revisions:
r168785 - crash
4.5 r168785 - crash
4.4 r168785 - crash