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

            Bug ID: 97717
           Summary: compilation with -O(1/2/3) flag failed while -O0
                    succeeds
           Product: gcc
           Version: 9.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kranti.rkiran at gmail dot com
  Target Milestone: ---

GCC version: 9.3.0

System Info: 
System:    Host: T-RAGOLI-X1Yoga Kernel: 4.4.0-18362-Microsoft x86_64 bits: 64 
           Console: tty 2 Distro: Ubuntu 20.04 LTS (Focal Fossa) 
CPU:       Topology: Dual Core model: Intel Core i7-6600U bits: 64 type: MT MCP 
           L2 cache: 256 KiB 
           Speed: 2808 MHz min/max: N/A Core speeds (MHz): 1: 2808 2: 2808 3:
2808 4: 2808 
(The machine uses WSL-2)

Compiling the source code with optimization fags (-O1/-O2/-O3) throws a
compiler segfault.
Command: g++ -O3 test.cpp
g++: internal compiler error: Segmentation fault signal terminated program
cc1plus

The compilation using 'g++ test.cpp' succeeds.

Reply via email to