[LLVMbugs] [Bug 16802] New: clang fails to parse MSVC 2012 bitset constructor due to template args in default argument context
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Aug 5 18:53:14 PDT 2013
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: unassignedclangbugs at nondot.org
Reporter: reid.kleckner at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130806/4d711d82/attachment.html>
More information about the llvm-bugs
mailing list