[LLVMbugs] [Bug 14033] New: clang++ fails to find ambiguity between two overloads, `const T&` and `T&&` (both would accept an rvalue)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 5 16:59:11 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=14033

             Bug #: 14033
           Summary: clang++ fails to find ambiguity between two overloads,
                    `const T&` and `T&&` (both would accept an rvalue)
           Product: clang
           Version: 3.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: juchem at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9313
  --> http://llvm.org/bugs/attachment.cgi?id=9313
test case source, output and compilation script

$ clang++ --version
Debian clang version 3.1-8 (branches/release_31) (based on LLVM 3.1)
Target: x86_64-pc-linux-gnu
Thread model: posix

gcc will point it out with `-Wextra -Wall -pedantic`, clang won't even with
those flags

full code for small test case, output and compilation script attached

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list