[LLVMbugs] [Bug 10885] New: Better diagnostic for nested functions

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 7 16:12:40 PDT 2011


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

           Summary: Better diagnostic for nested functions
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: joerg at NetBSD.org
                CC: llvmbugs at cs.uiuc.edu


Consider the simplest case of nested functions like:

void f(void)
{
    void g(void)
    {
    }
}

At the moment clang gives:

test.c:3:14: error: expected ';' at end of declaration

pointing before the '{' and after g(void). It would be nice if the parser
reported this directly like

test.c:3:14: error: unsupported nested function or missing ';' at end of
declaration

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