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

            Bug ID: 93572
           Summary: internal compiler error: q from h referenced in main
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: changochen1 at gmail dot com
  Target Milestone: ---

POC:
---
struct s { int x ;
 double y ;
 } short main ( ) { int x ;
 int h ( x , y ) char arr [ ( 1 , 2 ) - ( ( 1 , 2 ) / 2 ) * 2 ] [ sizeof 0 ] ,
( * p ) [ ] , * q ;
 int v [ & q != 2 ] ;
 2 * ( 3 + 4 ) ;
 x = x & ( 6 / ( 6 / 114 / 2 ) / 2 ) ;
 return x - 1 ;
 }
---

GCC version:
---
gcc -v
Using built-in specs.
COLLECT_GCC=/mnt/raidhhd/gcc_instr_install/usr/local/bin/gcc
COLLECT_LTO_WRAPPER=/mnt/raidhhd/gcc_instr_install/usr/local/bin/../libexec/gcc/x86_64-pc-linux-gnu/10.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../configure
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.0.1 20200127 (experimental) (GCC)
---

CMD:
---
gcc -o tmp poc.c
---

Reply via email to