[Bug c++/93789] New: internal compiler error: in tree_to_uhwi, at tree.c:7361

2020-02-17 Thread changochen1 at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: changochen1 at gmail dot com Target Milestone: --- POC: --- void f ( ) { const int tbl [ ( long ) "h" ] = { 12 }; } --- Rum script: --- cc1plus -o poc poc.c --- Stack dump: --- t

[Bug c++/93788] New: Segfault caused by infinite loop in cc1plus

2020-02-17 Thread changochen1 at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: changochen1 at gmail dot com Target Milestone: --- POC: --- int a{[] ( struct { --- Run script: --- cc1plus poc.c --- Stack dump only says segemantation fault. When I debugged I found the segfault is caused by an invalid stack

[Bug c++/93753] New: internal compiler error: in output_constructor_regular_field, at varasm.c:5255

2020-02-14 Thread changochen1 at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: changochen1 at gmail dot com Target Milestone: --- POC: --- struct { int mem [ ] ; int b ; } s = {1}; --- run script: --- g++ -o poc poc.cpp --- g++ version: --- g

[Bug c++/93752] New: internal compiler error: in pop_local_binding, at cp/name-lookup.c:2036

2020-02-14 Thread changochen1 at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: changochen1 at gmail dot com Target Milestone: --- POC: --- int main ( void ) { struct s1 { int s ; struct s2 { int tbl[ sizeof ( struct s

[Bug c/93631] internal compiler error: in gimple_ca ll_arg, at gimple.h:3258

2020-02-07 Thread changochen1 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93631 --- Comment #1 from Yongheng Chen --- POC: --- int f2 ( int x [ strcmp ( ) ] , int b ) { return c - b ; } int ( * f1 ( int a , enum E2 { E = -2 , F , G , H } b ) ) ( int c , int b ) { if ( a != b ) return f2 ; return 0 ; } int main ( ) { in

[Bug c/93631] New: internal compiler error: in gimple_ca ll_arg, at gimple.h:3258

2020-02-07 Thread changochen1 at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: changochen1 at gmail dot com Target Milestone: --- POC: --- --- Run command: --- gcc -o poc poc.c --- Gcc version: --- gcc (GCC) 10.0.1 20200208 (experimental) Copyright (C) 2020 Free

[Bug c/93577] internal compiler error: tree check: expected integer_cst, have non_lvalue_expr in get_len, at tree.h:5902

2020-02-04 Thread changochen1 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93577 --- Comment #1 from Yongheng Chen --- Stack dump: --- tt.c: In function ‘main’: tt.c:2:48: warning: implicit declaration of function ‘f’ [-Wimplicit-function-declaration] 2 | struct s { int x [ 16 == ( ( ( sizeof ( ( 3 , f ( ) > 1000 < 5000

[Bug c/93574] internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in c_expr_sizeof_expr, at c/c-typeck.c:2925

2020-02-04 Thread changochen1 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93574 --- Comment #1 from Yongheng Chen --- Stack dump: --- tt.c:1:26: error: variable or field ‘y’ declared void 1 | struct s { struct { void y ; | ^ tt.c: In function ‘main’: tt.c:7:23: warning: implicit declaration

[Bug c/93573] internal compiler error: in force_constant_size, at gimplify.c:733

2020-02-04 Thread changochen1 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93573 --- Comment #1 from Yongheng Chen --- Stack dump: --- tt.c:1:5: error: ‘f1’ declared as function returning a function 1 | int f1 ( char * p ) ( ) { int x ; | ^~ tt.c: In function ‘f1’: tt.c:4:9: warning: implicit declaration of fun

[Bug c/93572] internal compiler error: q from h referenced in main

2020-02-04 Thread changochen1 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93572 --- Comment #1 from Yongheng Chen --- Stack dump: --- tt.c:3:4: error: expected ‘;’, identifier or ‘(’ before ‘short’ 3 | } short main ( ) { int x ; |^ tt.c: In function ‘h’: tt.c:5:14: warning: comparison between pointer and i

[Bug middle-end/93576] [10 Regression] internal compiler error: Segmentation fault (in gimplify.c)

2020-02-04 Thread changochen1 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93576 --- Comment #6 from Yongheng Chen --- I see. I will do it for future bugs.

[Bug middle-end/93576] [10 Regression] internal compiler error: Segmentation fault (in gimplify.c)

2020-02-04 Thread changochen1 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93576 --- Comment #3 from Yongheng Chen --- It seems I overwrote Andrew Pinski's comment by mistake. Sorry about that LOL

[Bug middle-end/93576] [10 Regression] internal compiler error: Segmentation fault (in gimplify.c)

2020-02-04 Thread changochen1 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93576 --- Comment #2 from Yongheng Chen --- Hi Martin, I included the CMD line "gcc -o tmp poc.c" in the report but not the stack dump. Is the stack dump necessary? I didn't include it because I think the POC is enough to reproduce the problem and the

[Bug c/93577] New: internal compiler error: tree check: expected integer_cst, have non_lvalue_expr in get_len, at tree.h:5902

2020-02-04 Thread changochen1 at gmail dot com
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

[Bug c/93576] New: internal compiler error: Segmentation fault (in gimplify.c)

2020-02-04 Thread changochen1 at gmail dot com
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 , e } ; return x [ ( ( char ) p % ( sizeof ( 0 ) < main ) >= ( ( ( char * ( * ( * ( int ( struc

[Bug c/93574] New: internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in c_expr_sizeof_expr, at c/c-typeck.c:2925

2020-02-04 Thread changochen1 at gmail dot com
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: --- struct s { struct { void y ; int z

[Bug c/93573] New: internal compiler error: in force_constant_size, at gimplify.c:733

2020-02-04 Thread changochen1 at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: changochen1 at gmail dot com Target Milestone: --- POC: --- int f1 ( char * p ) ( ) { int x ; x = 4 ; if ( ! x != 10 ) return 1 ; if ( ( sum ( 1 , 2 ) / 2 ) != 1 ) return 1 ; if

[Bug c/93572] New: internal compiler error: q from h referenced in main

2020-02-04 Thread changochen1 at gmail dot com
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