Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ojman101 at protonmail dot com
Target Milestone: ---
>From gcc version 7.2 and upwards this c++ code, using a member template
function look-up, fails to compile:
template
struct A {
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ojman101 at protonmail dot com
Target Milestone: ---
The code below is invalid C++, the line "Foo b = a;" should fail to
compile as implicitly casting is made illegal by the c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95066
--- Comment #1 from Owen Smith ---
#include
template
class IsSafelyCastable : public std::false_type {};
template <>
class IsSafelyCastable : public std::true_type {};
template
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ojman101 at protonmail dot com
Target Milestone: ---
The code below is invalid. The keyword "typename" needs to be inserted before
the decltype expression as "bar"
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95116
--- Comment #2 from Owen Smith ---
Ah ok thanks, I didn't know about P0634R3 :D.