[Bug c++/13452] No error on invalid CV qualifier on member function returning function pointer
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=13452 Andrew Pinski changed: What|Removed |Added CC||zhonghao at pku dot org.cn --- Comment #9 from Andrew Pinski --- *** Bug 86652 has been marked as a duplicate of this bug. ***
[Bug c++/13452] No error on invalid CV qualifier on member function returning function pointer
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=13452 --- Comment #8 from Andrew Pinski --- http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1417
[Bug c++/13452] No error on invalid CV qualifier on member function returning function pointer
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=13452 Martin Sebor changed: What|Removed |Added Last reconfirmed|2005-12-18 20:25:19 |2017-1-11 CC||msebor at gcc dot gnu.org Known to fail||3.3, 4.5.3, 4.8.3, 4.9.3, ||5.3.0, 6.3.0, 7.0 --- Comment #7 from Martin Sebor --- The invalid test case from comment #0 is still accepted by the top of trunk (GCC 7.0). Both Clang and Oracle Solaris Studio reject the program with a similar error: "t.C", line 1: Error: Non-member function pointer cannot point to a const function.