[Bug c++/99664] Overriding virtual function with different return type (and not covariant) is allowed to compiled, when it shouldn’t be

2021-03-19 Thread ricardojvsilva10 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99664 --- Comment #1 from Ricardo Silva --- >From here https://stackoverflow.com/q/66698168/6865932

[Bug c++/99664] New: Overriding virtual function with different return type (and not covariant) is allowed to compiled, when it shouldn’t be

2021-03-19 Thread ricardojvsilva10 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99664 Bug ID: 99664 Summary: Overriding virtual function with different return type (and not covariant) is allowed to compiled, when it shouldn’t be Product: gcc Versio