https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66519
Bug ID: 66519 Summary: [C++14] ICE when using decltype to detect callable return type during SFINAE Product: gcc Version: 5.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: krzysztof.sinica at gmail dot com Target Milestone: --- Created attachment 35769 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35769&action=edit Case source code g++ fails to compile the attached source file in the '-std=c++14' mode. clang 3.6.0 works just fine and generates executable with expected behaviour. GCC version: g++-5 (Ubuntu 5.1.0-0ubuntu11~14.04.1) 5.1.0