public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/46029] New: -ftree-loop-if-convert-stores causes FAIL: libstdc++-v3/testsuite/ext/pb_ds/example/tree_intervals.cc
@ 2010-10-15  0:47 zsojka at seznam dot cz
  2010-10-15  0:53 ` [Bug tree-optimization/46029] " zsojka at seznam dot cz
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2010-10-15  0:47 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46029

           Summary: -ftree-loop-if-convert-stores causes FAIL:
                    libstdc++-v3/testsuite/ext/pb_ds/example/tree_interval
                    s.cc
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


Created attachment 22047
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22047
preprocessed source

Output:
$ g++ -O -fstrict-aliasing -ftree-loop-if-convert-stores -std=c++0x
tree_intervalsn64.C
$ valgrind ./a.out
==26534== Invalid read of size 4
==26534==    at 0x40550D: void
some_op_sequence<__gnu_pbds::tree<std::pair<unsigned int, unsigned int>,
__gnu_pbds::null_mapped_type, std::less<std::pair<unsigned int, unsigned int>
>, __gnu_pbds::rb_tree_tag, intervals_node_update, std::allocator<char> >
>(__gnu_pbds::tree<std::pair<unsigned int, unsigned int>,
__gnu_pbds::null_mapped_type, std::less<std::pair<unsigned int, unsigned int>
>, __gnu_pbds::rb_tree_tag, intervals_node_update, std::allocator<char> >) (in
/home/smatz/gcc-bug/434/a.out)
==26534==    by 0x400A70: main (in /home/smatz/gcc-bug/434/a.out)
==26534==  Address 0x24 is not stack'd, malloc'd or (recently) free'd
==26534== 
==26534== 
==26534== Process terminating with default action of signal 11 (SIGSEGV)
==26534==  Access not within mapped region at address 0x24
==26534==    at 0x40550D: void
some_op_sequence<__gnu_pbds::tree<std::pair<unsigned int, unsigned int>,
__gnu_pbds::null_mapped_type, std::less<std::pair<unsigned int, unsigned int>
>, __gnu_pbds::rb_tree_tag, intervals_node_update, std::allocator<char> >
>(__gnu_pbds::tree<std::pair<unsigned int, unsigned int>,
__gnu_pbds::null_mapped_type, std::less<std::pair<unsigned int, unsigned int>
>, __gnu_pbds::rb_tree_tag, intervals_node_update, std::allocator<char> >) (in
/home/smatz/gcc-bug/434/a.out)
==26534==    by 0x400A70: main (in /home/smatz/gcc-bug/434/a.out)


Tested revisions:
r165354 - fail
r163636 - fail
r161659 - doen't know -ftree-loop-if-convert-stores


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-10-11  1:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-15  0:47 [Bug tree-optimization/46029] New: -ftree-loop-if-convert-stores causes FAIL: libstdc++-v3/testsuite/ext/pb_ds/example/tree_intervals.cc zsojka at seznam dot cz
2010-10-15  0:53 ` [Bug tree-optimization/46029] " zsojka at seznam dot cz
2010-10-15  9:52 ` zsojka at seznam dot cz
2010-12-23 17:21 ` spop at gcc dot gnu.org
2015-05-05 11:17 ` alalaw01 at gcc dot gnu.org
2015-05-06 22:07 ` spop at gcc dot gnu.org
2021-10-11  1:33 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).