[LLVMbugs] [Bug 23140] New: Typo correction of pointer-to-member operand raises "placeholders should have been weeded out by now" assertion
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Apr 6 20:48:20 PDT 2015
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: unassignedclangbugs at nondot.org
Reporter: david.majnemer at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150407/bdb61bcc/attachment.html>
More information about the llvm-bugs
mailing list