[Bug sanitizer/80536] New: UBSAN: compile time segfault

babokin at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Apr 26 20:16:00 GMT 2017


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

            Bug ID: 80536
           Summary: UBSAN: compile time segfault
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: babokin at gmail dot com
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org
  Target Milestone: ---

> cat f.cpp
extern unsigned char var_67;
void foo() {
  2 * (var_67 * (unsigned long long)(-0 - -2565537134464303311UL)) % 1;
}

> g++ -fsanitize=undefined -O0 -c f.cpp
g++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.

gcc is top of the trunk (r247282), x86_64.


More information about the Gcc-bugs mailing list