public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/97463] New: [11 Regression] ICE in warn_parm_ptrarray_mismatch on an incompatible function redeclaration
@ 2020-10-16 16:21 msebor at gcc dot gnu.org
  2020-10-16 16:22 ` [Bug c/97463] " msebor at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-10-16 16:21 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97463
           Summary: [11 Regression] ICE in warn_parm_ptrarray_mismatch on
                    an incompatible function redeclaration
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org
  Target Milestone: ---

The following invalid program triggers an ICE in the recently added 
warn_parm_ptrarray_mismatch function.

$ cat z.c && gcc -O2 -S -Wall -fdump-tree-optimized=/dev/stdout z.c
void f (void**);
void f (int n) {  }
z.c:2:1: internal compiler error: Segmentation fault
    2 | void f (int n) {  }
      | ^~~~
0x131e972 crash_signal
        /src/gcc/master/gcc/toplev.c:330
0xaea1f4 warn_parm_ptrarray_mismatch
        /src/gcc/master/gcc/c-family/c-warn.c:3182
0xaeae8b warn_parm_array_mismatch(unsigned int, tree_node*, tree_node*)
        /src/gcc/master/gcc/c-family/c-warn.c:3351
0x969c70 start_function(c_declspecs*, c_declarator*, tree_node*)
        /src/gcc/master/gcc/c/c-decl.c:9560
0x9d2682 c_parser_declaration_or_fndef
        /src/gcc/master/gcc/c/c-parser.c:2444
0x9d0e02 c_parser_external_declaration
        /src/gcc/master/gcc/c/c-parser.c:1777
0x9d0923 c_parser_translation_unit
        /src/gcc/master/gcc/c/c-parser.c:1650
0xa0ee9c c_parse_file()
        /src/gcc/master/gcc/c/c-parser.c:21821
0xaa27cd c_common_parse_file()
        /src/gcc/master/gcc/c-family/c-opts.c:1188
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.

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

* [Bug c/97463] [11 Regression] ICE in warn_parm_ptrarray_mismatch on an incompatible function redeclaration
  2020-10-16 16:21 [Bug c/97463] New: [11 Regression] ICE in warn_parm_ptrarray_mismatch on an incompatible function redeclaration msebor at gcc dot gnu.org
@ 2020-10-16 16:22 ` msebor at gcc dot gnu.org
  2020-10-16 16:49 ` msebor at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-10-16 16:22 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED
   Target Milestone|---                         |11.0
           Keywords|                            |ice-on-invalid-code
   Last reconfirmed|                            |2020-10-16

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

* [Bug c/97463] [11 Regression] ICE in warn_parm_ptrarray_mismatch on an incompatible function redeclaration
  2020-10-16 16:21 [Bug c/97463] New: [11 Regression] ICE in warn_parm_ptrarray_mismatch on an incompatible function redeclaration msebor at gcc dot gnu.org
  2020-10-16 16:22 ` [Bug c/97463] " msebor at gcc dot gnu.org
@ 2020-10-16 16:49 ` msebor at gcc dot gnu.org
  2020-10-19  7:15 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-10-16 16:49 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=97131

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
An almost identical problem was already fixed once in pr97131, but clearly the
fix was incomplete.

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

* [Bug c/97463] [11 Regression] ICE in warn_parm_ptrarray_mismatch on an incompatible function redeclaration
  2020-10-16 16:21 [Bug c/97463] New: [11 Regression] ICE in warn_parm_ptrarray_mismatch on an incompatible function redeclaration msebor at gcc dot gnu.org
  2020-10-16 16:22 ` [Bug c/97463] " msebor at gcc dot gnu.org
  2020-10-16 16:49 ` msebor at gcc dot gnu.org
@ 2020-10-19  7:15 ` rguenth at gcc dot gnu.org
  2020-10-23 18:51 ` cvs-commit at gcc dot gnu.org
  2020-10-23 18:54 ` msebor at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-10-19  7:15 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1

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

* [Bug c/97463] [11 Regression] ICE in warn_parm_ptrarray_mismatch on an incompatible function redeclaration
  2020-10-16 16:21 [Bug c/97463] New: [11 Regression] ICE in warn_parm_ptrarray_mismatch on an incompatible function redeclaration msebor at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2020-10-19  7:15 ` rguenth at gcc dot gnu.org
@ 2020-10-23 18:51 ` cvs-commit at gcc dot gnu.org
  2020-10-23 18:54 ` msebor at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-10-23 18:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Sebor <msebor@gcc.gnu.org>:

https://gcc.gnu.org/g:7991e963239160624b22a12caaacce95d3667e49

commit r11-4326-g7991e963239160624b22a12caaacce95d3667e49
Author: Martin Sebor <msebor@redhat.com>
Date:   Fri Oct 23 12:30:20 2020 -0600

    PR c/97463 - ICE in warn_parm_ptrarray_mismatch on an incompatible function
redeclaration

    gcc/c-family/ChangeLog:

            PR c/97463
            * c-warn.c (warn_parm_ptrarray_mismatch): Move null test earlier.

    gcc/testsuite/ChangeLog:

            PR c/97463
            * gcc.dg/pr97463.c: New test.

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

* [Bug c/97463] [11 Regression] ICE in warn_parm_ptrarray_mismatch on an incompatible function redeclaration
  2020-10-16 16:21 [Bug c/97463] New: [11 Regression] ICE in warn_parm_ptrarray_mismatch on an incompatible function redeclaration msebor at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2020-10-23 18:51 ` cvs-commit at gcc dot gnu.org
@ 2020-10-23 18:54 ` msebor at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-10-23 18:54 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Fixed in r11-432.

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

end of thread, other threads:[~2020-10-23 18:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-16 16:21 [Bug c/97463] New: [11 Regression] ICE in warn_parm_ptrarray_mismatch on an incompatible function redeclaration msebor at gcc dot gnu.org
2020-10-16 16:22 ` [Bug c/97463] " msebor at gcc dot gnu.org
2020-10-16 16:49 ` msebor at gcc dot gnu.org
2020-10-19  7:15 ` rguenth at gcc dot gnu.org
2020-10-23 18:51 ` cvs-commit at gcc dot gnu.org
2020-10-23 18:54 ` msebor 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).