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

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).