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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to