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

             Bug #: 14603
           Summary: In Obj-C++11 mode, vector<id<foo>> should be accepted,
                    but it still requires a space
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++11
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


hummer:src thakis$ cat test.mm
#include <vector>

@protocol P @end

int main() {
  std::vector<id<P>> v;
}
hummer:src thakis$ third_party/llvm-build/Release+Asserts/bin/clang -c test.mm
test.mm:6:19: error: expected '>'
  std::vector<id<P>> v;
                  ^
test.mm:6:19: error: a space is required between consecutive right angle
brackets (use '> >')
  std::vector<id<P>> v;
                  ^~
                  > >
test.mm:6:20: error: expected unqualified-id
  std::vector<id<P>> v;
                   ^
3 errors generated.
hummer:src thakis$ third_party/llvm-build/Release+Asserts/bin/clang -c test.mm
-std=c++11
test.mm:6:19: error: expected '>'
  std::vector<id<P>> v;
                  ^
test.mm:6:20: error: expected unqualified-id
  std::vector<id<P>> v;
                   ^
2 errors generated.

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to