public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/54425] New: Rvalue/Lvalue overload resolution of templated function @ 2012-08-30 17:19 leonid at volnitsky dot com 2012-08-30 21:51 ` [Bug c++/54425] " daniel.kruegler at googlemail dot com 2012-10-06 0:06 ` paolo.carlini at oracle dot com 0 siblings, 2 replies; 3+ messages in thread From: leonid at volnitsky dot com @ 2012-08-30 17:19 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54425 Bug #: 54425 Summary: Rvalue/Lvalue overload resolution of templated function Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: leonid@volnitsky.com Code below is rejected by 4.8.0. FWIW - it is accepted by clang32 and latest VC. ------------------------------------------------- template<class T> void f(T& t) {}; template<class T> void f(T&& t) {}; int main() { int lv{11}; f(lv); // error: ambigues overload } --------------------------------------------- ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/54425] Rvalue/Lvalue overload resolution of templated function 2012-08-30 17:19 [Bug c++/54425] New: Rvalue/Lvalue overload resolution of templated function leonid at volnitsky dot com @ 2012-08-30 21:51 ` daniel.kruegler at googlemail dot com 2012-10-06 0:06 ` paolo.carlini at oracle dot com 1 sibling, 0 replies; 3+ messages in thread From: daniel.kruegler at googlemail dot com @ 2012-08-30 21:51 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54425 Daniel Krügler <daniel.kruegler at googlemail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.kruegler at | |googlemail dot com --- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2012-08-30 21:51:07 UTC --- I can see the same problem with gcc 4.8.0 20120819 (experimental) (Let me add that the test example should remove the invalid semicolons after each function definition). This should be DR 1164: http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1164 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/54425] Rvalue/Lvalue overload resolution of templated function 2012-08-30 17:19 [Bug c++/54425] New: Rvalue/Lvalue overload resolution of templated function leonid at volnitsky dot com 2012-08-30 21:51 ` [Bug c++/54425] " daniel.kruegler at googlemail dot com @ 2012-10-06 0:06 ` paolo.carlini at oracle dot com 1 sibling, 0 replies; 3+ messages in thread From: paolo.carlini at oracle dot com @ 2012-10-06 0:06 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54425 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2012-10-06 Ever Confirmed|0 |1 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-06 0:06 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-08-30 17:19 [Bug c++/54425] New: Rvalue/Lvalue overload resolution of templated function leonid at volnitsky dot com 2012-08-30 21:51 ` [Bug c++/54425] " daniel.kruegler at googlemail dot com 2012-10-06 0:06 ` paolo.carlini at oracle dot com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).