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

            Bug ID: 16802
           Summary: clang fails to parse MSVC 2012 bitset constructor due
                    to template args in default argument context
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

Created attachment 10989
  --> http://llvm.org/bugs/attachment.cgi?id=10989&action=edit
reduced test case

$ clang t.cpp -c

t.cpp:12:52: error: expected ')'
  explicit my_bitset(unsigned s = my_string<Elt, Tr>::npos) { }
                                                   ^
t.cpp:12:21: note: to match this '('
  explicit my_bitset(unsigned s = my_string<Elt, Tr>::npos) { }
                    ^
t.cpp:12:48: error: expected '>'
  explicit my_bitset(unsigned s = my_string<Elt, Tr>::npos) { }
                                               ^
2 errors generated.

I'm guessing that clang thinks the '<' is a comparison, maybe?

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