[LLVMbugs] [Bug 21656] New: Incorrect error on undeclared variable use
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Nov 24 12:55:33 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=21656
Bug ID: 21656
Summary: Incorrect error on undeclared variable use
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: Matthew.Arsenault at amd.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Using r222680
int main(int argc, char *argv[])
{
float x = 1.0f;
x = (float) arst;
}
This produces the unhelpful error:
error: operand of type '<dependent type>' where arithmetic or pointer type is
required
1 error generated.
which doesn't even include a line number.
clang 3.4 produces the correct error:
clang_warning_bug.c:5:17: error: use of undeclared identifier 'arst'
x = (float) arst;
^
1 error generated.
--
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/20141124/18df6eb0/attachment.html>
More information about the llvm-bugs
mailing list