[LLVMbugs] [Bug 3329] New: g++.dg/warn/pr23075.C fails

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jan 15 05:00:25 PST 2009


           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: unassignedbugs at nondot.org
        ReportedBy: jay.foad at antixlabs.com
                CC: llvmbugs at cs.uiuc.edu

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"

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

More information about the llvm-bugs mailing list