[Bug c++/66595] New: [C++14] ICE in partial specialization template variables
vgheorgh at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Jun 19 04:23:00 GMT 2015
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.
More information about the Gcc-bugs
mailing list