https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71487
--- Comment #2 from Chungmin Lee ---
Command: g++ -std=c++11 a.cpp
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71487
--- Comment #1 from Chungmin Lee ---
You might say that in the above scenario HasLength does not have to be a
template, but it is just a simplified example.
++
Assignee: unassigned at gcc dot gnu.org
Reporter: lemonedo at gmail dot com
Target Milestone: ---
The following C++ code does not compile with GCC 5.3.1.
#include
#include
template T& declval() { return *static_cast(0); }
template
struct PropertyMatcher {
F memfun;