[Bug c++/66519] New: [C++14] ICE when using decltype to detect callable return type during SFINAE

2015-06-12 Thread krzysztof.sinica at gmail dot com
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


[Bug c++/66519] [C++14] ICE when using decltype to detect callable return type during SFINAE

2016-06-29 Thread krzysztof.sinica at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66519

--- Comment #1 from Krzysztof Sinica  ---
Created attachment 38796
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38796&action=edit
Reduced repro.