https://llvm.org/bugs/show_bug.cgi?id=23140
Bug ID: 23140
Summary: Typo correction of pointer-to-member operand raises
"placeholders should have been weeded out by now"
assertion
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
consider:
auto lneed = gned.*[] {};
compile with:
~/llvm/Debug+Asserts/bin/clang -cc1 t.cpp -std=c++11
'gned' has been typo corrected to 'lneed':
UnresolvedLookupExpr 0x7483c00 '<overloaded function type>' lvalue (no ADL) =
'lneed' empty
however, semantic analysis continues resulting in this assertion.
instead, I would expect the source to be treated like:
auto lneed = lneed.*[] {};
and raise a diagnostic like:
variable 'lneed' declared with 'auto' type cannot appear in its own initializer
--
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