[LLVMbugs] [Bug 13181] New: unmatched parenthesis, bracket and angle bracket

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 22 13:47:37 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13181

             Bug #: 13181
           Summary: unmatched parenthesis, bracket and angle bracket
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: vanyacpp at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Currently clang shows which braces is unmatched:

ivan at liberty:~$ cat 3.cpp
void f()
{

ivan at liberty:~$ clang++ 3.cpp
3.cpp:3:1: error: expected '}'

^
3.cpp:2:1: note: to match this '{'
{
^

But it does not show which parenthesis, bracket or angle bracket is unmatched:

ivan at liberty:~$ clang++ 2.cpp
2.cpp:1:6: error: variable has incomplete type 'void'
void f(;
     ^
2.cpp:1:8: error: expected expression
void f(;
       ^
ivan at liberty:~$ clang++ 4.cpp
4.cpp:5:13: error: expected '>'
void f<int();
            ^
4.cpp:5:1: warning: declaration does not declare anything
[-Wmissing-declarations]
void f<int();
^~~~

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