[LLVMbugs] [Bug 16098] New: poor error recovery on missing semicolon in method decl
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue May 21 17:53:20 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16098
Bug ID: 16098
Summary: poor error recovery on missing semicolon in method
decl
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: clattner at apple.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
I just hit this case:
$ cat t.cpp
class c {
public:
void foo()
void bar();
};
void f(c &x) {
x.foo();
x.bar();
}
$ clang t.cpp
t.cpp:5:13: error: expected ';' at end of declaration list
void foo()
^
;
t.cpp:11:5: error: no member named 'bar' in 'c'
x.bar();
~ ^
2 errors generated.
We recover properly on foo, but then skip the declaration of bar?
--
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/20130522/370d6f49/attachment.html>
More information about the llvm-bugs
mailing list