[LLVMbugs] [Bug 9547] New: Bad fixit for missing semi after class definition when followed by a qualified name

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 24 17:50:20 PDT 2011


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: unassignedclangbugs at nondot.org
        ReportedBy: matthewbg at google.com
                CC: llvmbugs at cs.uiuc.edu


$ 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.



More information about the llvm-bugs mailing list