[LLVMbugs] [Bug 7706] New: clang++ produces incorrect outputcode with boost::shared_ptr and -O0

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 24 17:52:08 PDT 2010


           Summary: clang++ produces incorrect outputcode with
                    boost::shared_ptr and -O0
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: M8R-motwq11 at mailinator.com
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=5259)
 --> (http://llvm.org/bugs/attachment.cgi?id=5259)

When I compile the attached code (using "clang++ -O0 test.ii") I would expect
the main function to output nothing. But instead the while loop is executed
infinitly and the "else" path is taken.

Compiling with gcc or using optimization the error disapears. 

> clang --version
clang version 2.8 (trunk 109365)
Target: x86_64-unknown-linux-gnu
Thread model: posix

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