https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68981

            Bug ID: 68981
           Summary: [4.9/5/6 Regression] g++.dg/ipa/pr60640-4.C FAILs with
                    -ftree-vectorize
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---

Created attachment 37080
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37080&action=edit
reduced testcase

Output:
$ i686-pc-linux-gnu-g++ -O3 -ftree-vectorize
gcc/testsuite/g++.dg/ipa/pr60640-4.C
$ ./a.out 
Segmentation fault

For the reduced testcase, -O3 is enough:
$ i686-pc-linux-gnu-g++ -O3 testcase.C
$ ./a.out 
Aborted

The original testcase segfaults on i686, but the reduced testcase Aborts on all
other architectures - but only in 4.9 and 5 branches:

$ x86_64-pc-linux-gnu-g++-4.9.3 -O3 testcase.C
$ ./a.out 
Aborted

Tested revisions for the reduced testcase @ -O3:
r231814 - FAIL (segfault) (for i686 only)
5-branch r231650 - FAIL (segfault) (for i686 only)
5_2_0-release, 5_3_0-release - FAIL (abort) (all architectures)
4_9-branch r231643 - FAIL (abort) (all architectures)
4_8-branch r224828 - OK

Reply via email to