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

           Summary: g++.dg/warn/pr23075.C fails
           Product: tools
           Version: 2.4
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: minor
          Priority: P2
         Component: llvm-g++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


The GCC 4.2.1 testsuite test g++.dg/warn/pr23075.C (attached) passed in llvm
2.3 but fails in llvm 2.4, because it produces a bogus "no return statement"
warning:

$ llvm-g++ -c -O2 -Wreturn-type pr23075.C 
pr23075.C: In function ‘int foo()’:
pr23075.C:8: error: return-statement with no value, in function returning
‘int’
pr23075.C:9: warning: no return statement in function returning non-void


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