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.