[LLVMbugs] [Bug 9260] New: clang: nested functions not supported?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 19 03:34:08 PST 2011


           Summary: clang: nested functions not supported?
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu
            Blocks: 4068

void foo()
    void bar() {

Results in:
p2.c:3:15: error: expected ';' at end of declaration
    void bar() {
1 error generated. 

This blocks compilation of thinkpad_acpi.c from the Linux kernel:
drivers/platform/x86/thinkpad_acpi.c:2369:35: error: expected ';' at end of
                             const unsigned int newvol)
drivers/platform/x86/thinkpad_acpi.c:2453:3: error: implicit declaration of
function 'issue_brightnesschange' is invalid in C99                    

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