public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/98195] New: [11 Regression] internal compiler error: Segmentation fault
@ 2020-12-08 11:34 anbu1024.me at gmail dot com
  2020-12-08 12:29 ` [Bug c/98195] " rguenth at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: anbu1024.me at gmail dot com @ 2020-12-08 11:34 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98195
           Summary: [11 Regression] internal compiler error: Segmentation
                    fault
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anbu1024.me at gmail dot com
  Target Milestone: ---

$ cat test.c 

static _Atomic long double x ; 

void foo ( void ) { 

        int a , b , c ; 

        x += foo ( x , a , b , c ) ; 

}

--------------------------------------------------------------------------------

$ gcc-11 --version
gcc (GCC) 11.0.0 20201129 (experimental)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

--------------------------------------------------------------------------------

$ gcc-11 test.c 
test.c: In function ‘foo’:
test.c:8:14: error: too many arguments to function ‘foo’
    8 |         x += foo ( x , a , b , c ) ;
      |              ^~~
test.c:4:6: note: declared here
    4 | void foo ( void ) {
      |      ^~~
test.c:8:9: error: void value not ignored as it ought to be
    8 |         x += foo ( x , a , b , c ) ;
      |         ^
test.c:8:11: internal compiler error: Segmentation fault
    8 |         x += foo ( x , a , b , c ) ;
      |           ^~
0xdeeb4f crash_signal
        ../../gcc-11-20201129/gcc/toplev.c:330
0xb5c982 gimplify_target_expr
        ../../gcc-11-20201129/gcc/gimplify.c:6757
0xb51e2e gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-11-20201129/gcc/gimplify.c:14406
0xb55396 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-11-20201129/gcc/gimplify.c:6862
0xb52f0b gimplify_statement_list
        ../../gcc-11-20201129/gcc/gimplify.c:1869
0xb52f0b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-11-20201129/gcc/gimplify.c:14454
0xb67dd7 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-11-20201129/gcc/gimplify.c:6862
0xb67dd7 gimplify_compound_expr
        ../../gcc-11-20201129/gcc/gimplify.c:6062
0xb52141 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-11-20201129/gcc/gimplify.c:14000
0xb55396 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-11-20201129/gcc/gimplify.c:6862
0xb52f0b gimplify_statement_list
        ../../gcc-11-20201129/gcc/gimplify.c:1869
0xb52f0b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-11-20201129/gcc/gimplify.c:14454
0xb55396 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-11-20201129/gcc/gimplify.c:6862
0xb5605d gimplify_bind_expr
        ../../gcc-11-20201129/gcc/gimplify.c:1417
0xb52121 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-11-20201129/gcc/gimplify.c:14211
0xb6af39 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-11-20201129/gcc/gimplify.c:6862
0xb6af39 gimplify_body(tree_node*, bool)
        ../../gcc-11-20201129/gcc/gimplify.c:15246
0xb6b35d gimplify_function_tree(tree_node*)
        ../../gcc-11-20201129/gcc/gimplify.c:15400
0x9af937 cgraph_node::analyze()
        ../../gcc-11-20201129/gcc/cgraphunit.c:670
0x9b2417 analyze_functions
        ../../gcc-11-20201129/gcc/cgraphunit.c:1235
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

--------------------------------------------------------------------------------

$ gcc-10 --version
gcc (GCC) 10.2.1 20201128
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

--------------------------------------------------------------------------------

$ gcc-10 test.c 
test.c: In function ‘foo’:
test.c:8:7: error: too many arguments to function ‘foo’
    8 |  x += foo ( x , a , b , c ) ;
      |       ^~~
test.c:4:6: note: declared here
    4 | void foo ( void ) {
      |      ^~~
test.c:8:2: error: void value not ignored as it ought to be
    8 |  x += foo ( x , a , b , c ) ;
      |  ^
test.c:8: confused by earlier errors, bailing out

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-03-23 20:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-08 11:34 [Bug c/98195] New: [11 Regression] internal compiler error: Segmentation fault anbu1024.me at gmail dot com
2020-12-08 12:29 ` [Bug c/98195] " rguenth at gcc dot gnu.org
2021-01-14 11:01 ` rguenth at gcc dot gnu.org
2021-04-27 11:39 ` [Bug c/98195] [11/12 " jakub at gcc dot gnu.org
2021-07-28  7:05 ` rguenth at gcc dot gnu.org
2021-08-17  6:13 ` pinskia at gcc dot gnu.org
2021-08-17  6:13 ` pinskia at gcc dot gnu.org
2021-08-17  6:14 ` pinskia at gcc dot gnu.org
2021-08-17  6:17 ` [Bug c/98195] " pinskia at gcc dot gnu.org
2024-03-23 20:55 ` [Bug c/98195] ICE after `void value not ignored as it ought to be` error pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).