http://llvm.org/bugs/show_bug.cgi?id=9547
Summary: Bad fixit for missing semi after class definition when
followed by a qualified name
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
$ cat bad_semi_fixit.cc
namespace Bar { class Baz; }
class Foo {
}
Bar::Baz f() {
}
$ clang -fsyntax-only bad_semi_fixit.cc
bad_semi_fixit.cc:6:6: error: no member named 'Baz' in namespace 'Bar'
Bar::Baz f() {
~~~~~^
bad_semi_fixit.cc:6:9: error: expected ';' after top level declarator
Bar::Baz f() {
^
;
2 errors generated.
That fixit should at least be on a note. Ideally, there would also be a note
suggesting a ';' fixit in the right place (after the closing curly of the
definition of Foo).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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