[LLVMbugs] [Bug 3358] New: invalid use of iterators in gvn

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jan 20 01:54:26 PST 2009


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

           Summary: invalid use of iterators in gvn
           Product: new-bugs
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu


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

When built with ENABLE_EXPENSIVE_CHECKS=1, the attached testcase (reduced
from the llvm-gcc build) gives:

$ opt -gvn regexp.bc -disable-output
/usr/include/c++/4.3/bits/stl_algo.h:2180:error: elements in iterator range     
    [__first, __last) are not partitioned by the value __val.                   

Objects involved in the operation:
iterator "__first" @ 0x0x7fffe6d01ca0 {
type =
N11__gnu_debug14_Safe_iteratorIN9__gnu_cxx17__normal_iteratorIPSt4pairIPN4llvm10BasicBlockENS4_12MemDepResultEENSt6__norm6vectorIS8_SaIS8_EEEEENSt7__debug6vectorIS8_SC_EEEE
(mutable iterator);                                                             
  state = dereferenceable (start-of-sequence);                                  
  references sequence with type
`NSt7__debug6vectorISt4pairIPN4llvm10BasicBlockENS2_12MemDepResultEESaIS6_EEE'
@ 0x0x7fffe6d01ca0             
}                                                                               
iterator "__last" @ 0x0x7fffe6d01c40 {                                          
type =
N11__gnu_debug14_Safe_iteratorIN9__gnu_cxx17__normal_iteratorIPSt4pairIPN4llvm10BasicBlockENS4_12MemDepResultEENSt6__norm6vectorIS8_SaIS8_EEEEENSt7__debug6vectorIS8_SC_EEEE
(mutable iterator);                                                             
  state = dereferenceable;                                                      
  references sequence with type
`NSt7__debug6vectorISt4pairIPN4llvm10BasicBlockENS2_12MemDepResultEESaIS6_EEE'
@ 0x0x7fffe6d01c40             
}


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