This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66595] New: [C++14] ICE in partial specialization template variables
- From: "vgheorgh at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 19 Jun 2015 04:23:30 +0000
- Subject: [Bug c++/66595] New: [C++14] ICE in partial specialization template variables
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66595
Bug ID: 66595
Summary: [C++14] ICE in partial specialization template
variables
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vgheorgh at gmail dot com
Target Milestone: ---
The code below
template<typename T> int typeID{42};
template<typename T> double typeID<double>{10.10};
int main() {}
produces an internal compiler error
> internal compiler error: in type_dependent_expression_p, at cp/pt.c:21431
in both g++5.1 and in HEAD
It should not compile, as the partial specialization doesn't use any of the
template arguments.