[LLVMbugs] [Bug 9157] New: Use of undeclared 'operator[]'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Feb 6 10:18:00 PST 2011


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

           Summary: Use of undeclared 'operator[]'
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: treaves at silverfieldstech.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


I have a file with this line of code:
operator[](i)[j] = right[ i][ j];

llvm-g++ and g++ both compile it fine.  clang++ gives the error in the summary.

Apple clang version 2.0 (tags/Apple/clang-134) (based on LLVM 2.9svn)

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