https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63515
Bug ID: 63515 Summary: unused templated member can be instatiated Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: luka.rahne at gmail dot com Created attachment 33694 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33694&action=edit source that fails I was working on curried functions and came across some unusual behaviour. (compilation fails with error) I have trimmed some code and put relevant comments in source. compiler: g++ 5.0 -> commit 9bf79212ecec2245e66156c2b18d8a76a0187b04 flags: -O3 -Wall -Wextra -std=c++11