[LLVMbugs] [Bug 10782] New: function without return type in declaration causes error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 26 14:32:29 PDT 2011


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

           Summary: function without return type in declaration causes
                    error
           Product: clang
           Version: 2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rkotler at mips.com
                CC: llvmbugs at cs.uiuc.edu


the following compiles with g++ and intel edg based C++ compiler.

this one issue causes many failures in the dejagnu g/g++ test suite.

main() {

}

even if it's a correct errror, I recommend that it be reduced to a warning in
general use.

/home/rkotler/build_llvm/install/bin/clang++ m1.C
m1.C:1:1: error: C++ requires a type specifier for all declarations
main() {
^~~~
1 error 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