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

--- Comment #11 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Bernd Edlinger from comment #9)
> I'm unable to reduce the test case...

Creduce is running and hopefully I will have a small testcase tomorrow morning.


trippels@gcc2-power8 ~ % cat check.sh
#!/bin/sh
ulimit -t 2
clang++ -Wall -Werror -std=c++14 -O3 -fsanitize=undefined test.ii
  if ! test $? = 0; then
    exit 1
  fi
./a.out  2>&1 | grep "runtime error"
  if test $? = 0; then
    exit 1
  fi
./a.out  
  if ! test $? = 0; then
    exit 1
  fi
~/gcc_5/usr/local/bin/g++ -std=c++14 -O3 test.ii -w -Wfatal-errors
  if ! test $? = 0; then
    exit 1
  fi
./a.out 
  if ! test $? = 0; then
    exit 1
  fi
g++ -O2 test.ii -w -Wfatal-errors
  if ! test $? = 0; then
    exir 1
  fi
valgrind -q --error-exitcode=1 ./a.out
  if ! test $? = 0; then
    exit 1
  fi
g++ -O3 test.ii -w -Wfatal-errors
  if ! test $? = 0; then
    exit 1
  fi
./a.out 
  if ! test $? = 137; then
    exit 1
  fi

Reply via email to