https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93577
Bug ID: 93577 Summary: internal compiler error: tree check: expected integer_cst, have non_lvalue_expr in get_len, at tree.h:5902 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: changochen1 at gmail dot com Target Milestone: --- POC: --- int main ( ) { int x [ ] = { 1 , } ; struct s { int x [ 16 == ( ( ( sizeof ( ( 3 , f ( ) > 1000 < 5000 < 2 ) ) / 2 ) != x > ( 6 / 3 / 2 ) ) ) ] ; struct { int tag ; struct { int tag ; union { struct { struct obj * car , * cdr ; } i ; double r ; char * sl ; } u ; int a [ 3.140000 != 2 && 0 ] ; } u ; int z ; } nest ; } g_207 = { 1 , 2 , 3 } ; return f == a ; } --- GCC version: --- 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 line: --- gcc -o tmp poc.c ---