public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/106740] New: Internal compiler error: Segmentation fault
@ 2022-08-25 12:41 kglindemann at yahoo dot de
  2022-08-25 13:19 ` [Bug c++/106740] " marxin at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: kglindemann at yahoo dot de @ 2022-08-25 12:41 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106740
           Summary: Internal compiler error: Segmentation fault
           Product: gcc
           Version: 12.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kglindemann at yahoo dot de
  Target Milestone: ---

Created attachment 53505
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53505&action=edit
gzipped report generated by -freport-bug

When compiling a c++ file with gcc12.2.0, the compiler crashes.
No problems when compiling with gcc12.1

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

* [Bug c++/106740] Internal compiler error: Segmentation fault
  2022-08-25 12:41 [Bug c++/106740] New: Internal compiler error: Segmentation fault kglindemann at yahoo dot de
@ 2022-08-25 13:19 ` marxin at gcc dot gnu.org
  2022-08-25 13:37 ` marxin at gcc dot gnu.org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-08-25 13:19 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2022-08-25
                 CC|                            |marxin at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, bisecting and reducing right now.

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

* [Bug c++/106740] Internal compiler error: Segmentation fault
  2022-08-25 12:41 [Bug c++/106740] New: Internal compiler error: Segmentation fault kglindemann at yahoo dot de
  2022-08-25 13:19 ` [Bug c++/106740] " marxin at gcc dot gnu.org
@ 2022-08-25 13:37 ` marxin at gcc dot gnu.org
  2022-08-25 13:42 ` [Bug c++/106740] [11/12 Regression] ICE in instantiate_decl at gcc/cp/pt.cc:26515 since r12-8467-ge057d454db4dcf marxin at gcc dot gnu.org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-08-25 13:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Reduced test-case:

$ cat ice.ii
template <typename> struct EnumClass { friend int toString(EnumClass); };
struct AmhsConvInfoCoFw {
  enum AftnTypeXMsgTypeEnum {};
  typedef EnumClass<AftnTypeXMsgTypeEnum> AftnTypeXMsgType;
  const int getAftnTypeXMsgTypeAsStr() const;
  struct MtcuAxgwInfo {
    AftnTypeXMsgType mAftnTypeXMsgType;
  };
};
const int AmhsConvInfoCoFw::getAftnTypeXMsgTypeAsStr() const {
  MtcuAxgwInfo __trans_tmp_1;
  toString(__trans_tmp_1.mAftnTypeXMsgType);
  return 0;
}
int toString(AmhsConvInfoCoFw::AftnTypeXMsgType);

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

* [Bug c++/106740] [11/12 Regression] ICE in instantiate_decl at gcc/cp/pt.cc:26515 since r12-8467-ge057d454db4dcf
  2022-08-25 12:41 [Bug c++/106740] New: Internal compiler error: Segmentation fault kglindemann at yahoo dot de
  2022-08-25 13:19 ` [Bug c++/106740] " marxin at gcc dot gnu.org
  2022-08-25 13:37 ` marxin at gcc dot gnu.org
@ 2022-08-25 13:42 ` marxin at gcc dot gnu.org
  2022-08-25 15:04 ` rguenth at gcc dot gnu.org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-08-25 13:42 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org
   Target Milestone|---                         |12.3
            Summary|Internal compiler error:    |[11/12 Regression] ICE in
                   |Segmentation fault          |instantiate_decl at
                   |                            |gcc/cp/pt.cc:26515 since
                   |                            |r12-8467-ge057d454db4dcf
           Priority|P3                          |P1

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r12-8467-ge057d454db4dcf.

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

* [Bug c++/106740] [11/12 Regression] ICE in instantiate_decl at gcc/cp/pt.cc:26515 since r12-8467-ge057d454db4dcf
  2022-08-25 12:41 [Bug c++/106740] New: Internal compiler error: Segmentation fault kglindemann at yahoo dot de
                   ` (2 preceding siblings ...)
  2022-08-25 13:42 ` [Bug c++/106740] [11/12 Regression] ICE in instantiate_decl at gcc/cp/pt.cc:26515 since r12-8467-ge057d454db4dcf marxin at gcc dot gnu.org
@ 2022-08-25 15:04 ` rguenth at gcc dot gnu.org
  2022-08-25 15:06 ` rguenth at gcc dot gnu.org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-08-25 15:04 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P2
      Known to work|                            |12.1.0
      Known to fail|                            |12.2.0

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

* [Bug c++/106740] [11/12 Regression] ICE in instantiate_decl at gcc/cp/pt.cc:26515 since r12-8467-ge057d454db4dcf
  2022-08-25 12:41 [Bug c++/106740] New: Internal compiler error: Segmentation fault kglindemann at yahoo dot de
                   ` (3 preceding siblings ...)
  2022-08-25 15:04 ` rguenth at gcc dot gnu.org
@ 2022-08-25 15:06 ` rguenth at gcc dot gnu.org
  2022-12-15 21:35 ` ppalka at gcc dot gnu.org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-08-25 15:06 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |11.3.1
           Priority|P2                          |P1
      Known to work|                            |11.3.0, 13.0
   Target Milestone|12.3                        |11.4

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

* [Bug c++/106740] [11/12 Regression] ICE in instantiate_decl at gcc/cp/pt.cc:26515 since r12-8467-ge057d454db4dcf
  2022-08-25 12:41 [Bug c++/106740] New: Internal compiler error: Segmentation fault kglindemann at yahoo dot de
                   ` (4 preceding siblings ...)
  2022-08-25 15:06 ` rguenth at gcc dot gnu.org
@ 2022-12-15 21:35 ` ppalka at gcc dot gnu.org
  2023-04-17 10:55 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: ppalka at gcc dot gnu.org @ 2022-12-15 21:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Backporting the second patch r13-1018-ge8ed26c2ac38ab from PR105852 seems to
fix the regression on the 12 branch at least.

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

* [Bug c++/106740] [11/12 Regression] ICE in instantiate_decl at gcc/cp/pt.cc:26515 since r12-8467-ge057d454db4dcf
  2022-08-25 12:41 [Bug c++/106740] New: Internal compiler error: Segmentation fault kglindemann at yahoo dot de
                   ` (5 preceding siblings ...)
  2022-12-15 21:35 ` ppalka at gcc dot gnu.org
@ 2023-04-17 10:55 ` rguenth at gcc dot gnu.org
  2023-05-08 12:38 ` jason at gcc dot gnu.org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-04-17 10:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Note this is P1 on the GCC 11 branch only.

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

* [Bug c++/106740] [11/12 Regression] ICE in instantiate_decl at gcc/cp/pt.cc:26515 since r12-8467-ge057d454db4dcf
  2022-08-25 12:41 [Bug c++/106740] New: Internal compiler error: Segmentation fault kglindemann at yahoo dot de
                   ` (6 preceding siblings ...)
  2023-04-17 10:55 ` rguenth at gcc dot gnu.org
@ 2023-05-08 12:38 ` jason at gcc dot gnu.org
  2023-05-09  3:47 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2023-05-08 12:38 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org

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

* [Bug c++/106740] [11/12 Regression] ICE in instantiate_decl at gcc/cp/pt.cc:26515 since r12-8467-ge057d454db4dcf
  2022-08-25 12:41 [Bug c++/106740] New: Internal compiler error: Segmentation fault kglindemann at yahoo dot de
                   ` (7 preceding siblings ...)
  2023-05-08 12:38 ` jason at gcc dot gnu.org
@ 2023-05-09  3:47 ` cvs-commit at gcc dot gnu.org
  2023-05-09  3:51 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-05-09  3:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:

https://gcc.gnu.org/g:0697a1a426424468b9bdf3d845237cab26ce78d7

commit r11-10751-g0697a1a426424468b9bdf3d845237cab26ce78d7
Author: Jason Merrill <jason@redhat.com>
Date:   Tue Jun 7 15:52:30 2022 -0400

    c++: non-templated friends [PR105852]

    The previous patch for 105852 avoids copying DECL_TEMPLATE_INFO from a
    non-templated friend, but it really shouldn't have it in the first place.

            PR c++/106740
            PR c++/105852

    gcc/cp/ChangeLog:

            * decl.c (duplicate_decls): Change non-templated friend
            check to an assert.
            * pt.c  (tsubst_function_decl): Don't set DECL_TEMPLATE_INFO
            on non-templated friends.
            (tsubst_friend_function): Adjust.

    gcc/testsuite/ChangeLog:

            * g++.dg/template/friend78.C: New test.

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

* [Bug c++/106740] [11/12 Regression] ICE in instantiate_decl at gcc/cp/pt.cc:26515 since r12-8467-ge057d454db4dcf
  2022-08-25 12:41 [Bug c++/106740] New: Internal compiler error: Segmentation fault kglindemann at yahoo dot de
                   ` (8 preceding siblings ...)
  2023-05-09  3:47 ` cvs-commit at gcc dot gnu.org
@ 2023-05-09  3:51 ` cvs-commit at gcc dot gnu.org
  2023-05-09  3:52 ` cvs-commit at gcc dot gnu.org
  2023-05-15  8:08 ` jakub at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-05-09  3:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:

https://gcc.gnu.org/g:8b43834d069183e14c15909e144d870c39b74028

commit r12-9519-g8b43834d069183e14c15909e144d870c39b74028
Author: Jason Merrill <jason@redhat.com>
Date:   Tue Jun 7 15:52:30 2022 -0400

    c++: non-templated friends [PR105852]

    The previous patch for 105852 avoids copying DECL_TEMPLATE_INFO from a
    non-templated friend, but it really shouldn't have it in the first place.

            PR c++/106740
            PR c++/105852

    gcc/cp/ChangeLog:

            * decl.cc (duplicate_decls): Change non-templated friend
            check to an assert.
            * pt.cc (tsubst_function_decl): Don't set DECL_TEMPLATE_INFO
            on non-templated friends.
            (tsubst_friend_function): Adjust.

    gcc/testsuite/ChangeLog:

            * g++.dg/template/friend78.C: New test.

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

* [Bug c++/106740] [11/12 Regression] ICE in instantiate_decl at gcc/cp/pt.cc:26515 since r12-8467-ge057d454db4dcf
  2022-08-25 12:41 [Bug c++/106740] New: Internal compiler error: Segmentation fault kglindemann at yahoo dot de
                   ` (9 preceding siblings ...)
  2023-05-09  3:51 ` cvs-commit at gcc dot gnu.org
@ 2023-05-09  3:52 ` cvs-commit at gcc dot gnu.org
  2023-05-15  8:08 ` jakub at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-05-09  3:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Jason Merrill <jason@gcc.gnu.org>:

https://gcc.gnu.org/g:73f7109ffb159302e9d8f70948a5b43b046b38bc

commit r14-591-g73f7109ffb159302e9d8f70948a5b43b046b38bc
Author: Jason Merrill <jason@redhat.com>
Date:   Mon May 8 18:22:30 2023 -0400

    c++: non-template friend of template [PR106740]

    This was fixed by r13-1018, but the testcase seems needed.

            PR c++/106740

    gcc/testsuite/ChangeLog:

            * g++.dg/template/friend78.C: New test.

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

* [Bug c++/106740] [11/12 Regression] ICE in instantiate_decl at gcc/cp/pt.cc:26515 since r12-8467-ge057d454db4dcf
  2022-08-25 12:41 [Bug c++/106740] New: Internal compiler error: Segmentation fault kglindemann at yahoo dot de
                   ` (10 preceding siblings ...)
  2023-05-09  3:52 ` cvs-commit at gcc dot gnu.org
@ 2023-05-15  8:08 ` jakub at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-05-15  8:08 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed for both 11.4 and 12.4.

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

end of thread, other threads:[~2023-05-15  8:08 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-25 12:41 [Bug c++/106740] New: Internal compiler error: Segmentation fault kglindemann at yahoo dot de
2022-08-25 13:19 ` [Bug c++/106740] " marxin at gcc dot gnu.org
2022-08-25 13:37 ` marxin at gcc dot gnu.org
2022-08-25 13:42 ` [Bug c++/106740] [11/12 Regression] ICE in instantiate_decl at gcc/cp/pt.cc:26515 since r12-8467-ge057d454db4dcf marxin at gcc dot gnu.org
2022-08-25 15:04 ` rguenth at gcc dot gnu.org
2022-08-25 15:06 ` rguenth at gcc dot gnu.org
2022-12-15 21:35 ` ppalka at gcc dot gnu.org
2023-04-17 10:55 ` rguenth at gcc dot gnu.org
2023-05-08 12:38 ` jason at gcc dot gnu.org
2023-05-09  3:47 ` cvs-commit at gcc dot gnu.org
2023-05-09  3:51 ` cvs-commit at gcc dot gnu.org
2023-05-09  3:52 ` cvs-commit at gcc dot gnu.org
2023-05-15  8:08 ` jakub 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).