[LLVMbugs] [Bug 12584] New: strange error message on definitely wrong code

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Apr 18 02:47:42 PDT 2012


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

             Bug #: 12584
           Summary: strange error message on definitely wrong code
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: vanyacpp at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


The first error is absolutely correct, but the second is not. There is no 'int
()' anywhere.

1.cpp:1:14: error: 'xxx' declared as array of functions of type 'void ()'
void xxx[5]()[6]();
             ^
1.cpp:1:9: error: 'xxx' declared as array of functions of type 'int ()'
void xxx[5]()[6]();
        ^
2 errors generated.

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