[Bug c++/94799] New: [7.2+ Regression] Calling a member template function fails

2020-04-27 Thread ojman101 at protonmail dot com
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 {

[Bug c++/95066] New: [C++ 20] Incorrect valid compilation with a conditional explicit

2020-05-11 Thread ojman101 at protonmail dot com
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

[Bug c++/95066] [C++ 20] Incorrect valid compilation with a conditional explicit

2020-05-11 Thread ojman101 at protonmail dot com
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

[Bug c++/95116] New: [C++ 20] Accepts invalid code with decltype dependent type

2020-05-13 Thread ojman101 at protonmail dot com
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"

[Bug c++/95116] [C++ 20] Accepts invalid code with decltype dependent type

2020-05-13 Thread ojman101 at protonmail dot com
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.