[Bug c++/79504] Overload resolution in trailing-return-type ignores reference qualifier and leads to recursive template instantiation.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79504 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |8.0
[Bug c++/79504] Overload resolution in trailing-return-type ignores reference qualifier and leads to recursive template instantiation.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79504 Patrick Palka changed: What|Removed |Added Status|NEW |RESOLVED CC||ppalka at gcc dot gnu.org Resolution|--- |FIXED --- Comment #4 from Patrick Palka --- Testcase added.
[Bug c++/79504] Overload resolution in trailing-return-type ignores reference qualifier and leads to recursive template instantiation.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79504 --- Comment #3 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:798ff1c3e10c6926263f17704137e8c1a0d39be0 commit r11-2330-g798ff1c3e10c6926263f17704137e8c1a0d39be0 Author: Patrick Palka Date: Sun Jul 26 13:37:26 2020 -0400 c++: Add testcase for [PR79504] We successfully compile this testcase ever since r8-5270. gcc/testsuite/ChangeLog: PR c++/79504 * g++.dg/cpp0x/decltype79.C: New test.
[Bug c++/79504] Overload resolution in trailing-return-type ignores reference qualifier and leads to recursive template instantiation.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79504 Jonathan Wakely changed: What|Removed |Added Summary|Mix of perfect forwarding |Overload resolution in |and reference qualifier |trailing-return-type |leads to recursive template |ignores reference qualifier |instantiation. |and leads to recursive ||template instantiation. --- Comment #2 from Jonathan Wakely --- Tweaking the testcase confirms that the call in the function body correctly resolves to void A::f()& but the one in the trailing-return-type doesn't seem to consider the ref-qualifier, and incorrectly calls itself. Summary adjusted accordingly.