public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/103952] New: ICE: in cp_finish_decl, at cp/decl.c:7933
@ 2022-01-09 14:51 hewillk at gmail dot com
  2022-01-09 14:54 ` [Bug c++/103952] " hewillk at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: hewillk at gmail dot com @ 2022-01-09 14:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103952
           Summary: ICE: in cp_finish_decl, at cp/decl.c:7933
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

12 regression:

template<class>
struct A {
  template<int... Is>
  struct B {
    static constexpr auto c = [] { return Is; }();
    using type = decltype(c);
  };
};

#include<tuple>
int main() {
  typename A<std::tuple<int>>::B<0>::type x;
}

https://godbolt.org/z/fxvKWP4qM

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

* [Bug c++/103952] ICE: in cp_finish_decl, at cp/decl.c:7933
  2022-01-09 14:51 [Bug c++/103952] New: ICE: in cp_finish_decl, at cp/decl.c:7933 hewillk at gmail dot com
@ 2022-01-09 14:54 ` hewillk at gmail dot com
  2022-01-09 16:31 ` [Bug c++/103952] [9/10/11/12 Regression] " pinskia at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: hewillk at gmail dot com @ 2022-01-09 14:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from 康桓瑋 <hewillk at gmail dot com> ---
Segmentation fault:

template<class>
struct A {
  template<int... Is>
  static constexpr auto c = [] { return Is; }();
  using type = decltype(c<0>);
};

#include<tuple>
int main() {
  typename A<std::tuple<int>>::type x;
}

https://godbolt.org/z/EbdanW16d

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

* [Bug c++/103952] [9/10/11/12 Regression] ICE: in cp_finish_decl, at cp/decl.c:7933
  2022-01-09 14:51 [Bug c++/103952] New: ICE: in cp_finish_decl, at cp/decl.c:7933 hewillk at gmail dot com
  2022-01-09 14:54 ` [Bug c++/103952] " hewillk at gmail dot com
@ 2022-01-09 16:31 ` pinskia at gcc dot gnu.org
  2022-01-18 13:54 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-09 16:31 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-01-09
      Known to fail|                            |8.1.0
     Ever confirmed|0                           |1
           Severity|normal                      |trivial
            Summary|ICE: in cp_finish_decl, at  |[9/10/11/12 Regression]
                   |cp/decl.c:7933              |ICE: in cp_finish_decl, at
                   |                            |cp/decl.c:7933
           Keywords|                            |error-recovery
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |4.9.1
   Target Milestone|---                         |9.5

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think they are two different bugs here, the first one was working (no
ICE/confused by earlier errors, bailing out) in GCC 7.5.0 while the second one
is was working in 4.9.1.

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

* [Bug c++/103952] [9/10/11/12 Regression] ICE: in cp_finish_decl, at cp/decl.c:7933
  2022-01-09 14:51 [Bug c++/103952] New: ICE: in cp_finish_decl, at cp/decl.c:7933 hewillk at gmail dot com
  2022-01-09 14:54 ` [Bug c++/103952] " hewillk at gmail dot com
  2022-01-09 16:31 ` [Bug c++/103952] [9/10/11/12 Regression] " pinskia at gcc dot gnu.org
@ 2022-01-18 13:54 ` rguenth at gcc dot gnu.org
  2022-05-27  9:47 ` [Bug c++/103952] [10/11/12/13 " rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-18 13:54 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4

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

* [Bug c++/103952] [10/11/12/13 Regression] ICE: in cp_finish_decl, at cp/decl.c:7933
  2022-01-09 14:51 [Bug c++/103952] New: ICE: in cp_finish_decl, at cp/decl.c:7933 hewillk at gmail dot com
                   ` (2 preceding siblings ...)
  2022-01-18 13:54 ` rguenth at gcc dot gnu.org
@ 2022-05-27  9:47 ` rguenth at gcc dot gnu.org
  2022-06-28 10:47 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27  9:47 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.5                         |10.4

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9 branch is being closed

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

* [Bug c++/103952] [10/11/12/13 Regression] ICE: in cp_finish_decl, at cp/decl.c:7933
  2022-01-09 14:51 [Bug c++/103952] New: ICE: in cp_finish_decl, at cp/decl.c:7933 hewillk at gmail dot com
                   ` (3 preceding siblings ...)
  2022-05-27  9:47 ` [Bug c++/103952] [10/11/12/13 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:47 ` jakub at gcc dot gnu.org
  2023-07-07 10:41 ` [Bug c++/103952] [11/12/13/14 " rguenth at gcc dot gnu.org
  2024-04-13 20:14 ` pinskia at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:47 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.4                        |10.5

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.

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

* [Bug c++/103952] [11/12/13/14 Regression] ICE: in cp_finish_decl, at cp/decl.c:7933
  2022-01-09 14:51 [Bug c++/103952] New: ICE: in cp_finish_decl, at cp/decl.c:7933 hewillk at gmail dot com
                   ` (4 preceding siblings ...)
  2022-06-28 10:47 ` jakub at gcc dot gnu.org
@ 2023-07-07 10:41 ` rguenth at gcc dot gnu.org
  2024-04-13 20:14 ` pinskia at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:41 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.5                        |11.5

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.

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

* [Bug c++/103952] [11/12/13/14 Regression] ICE: in cp_finish_decl, at cp/decl.c:7933
  2022-01-09 14:51 [Bug c++/103952] New: ICE: in cp_finish_decl, at cp/decl.c:7933 hewillk at gmail dot com
                   ` (5 preceding siblings ...)
  2023-07-07 10:41 ` [Bug c++/103952] [11/12/13/14 " rguenth at gcc dot gnu.org
@ 2024-04-13 20:14 ` pinskia at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-13 20:14 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2022-01-09 00:00:00         |2024-4-13

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note the first example in comment #0 was fixed in GCC 13. The one in comment #1
still fails on the trunk.

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

end of thread, other threads:[~2024-04-13 20:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-09 14:51 [Bug c++/103952] New: ICE: in cp_finish_decl, at cp/decl.c:7933 hewillk at gmail dot com
2022-01-09 14:54 ` [Bug c++/103952] " hewillk at gmail dot com
2022-01-09 16:31 ` [Bug c++/103952] [9/10/11/12 Regression] " pinskia at gcc dot gnu.org
2022-01-18 13:54 ` rguenth at gcc dot gnu.org
2022-05-27  9:47 ` [Bug c++/103952] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:47 ` jakub at gcc dot gnu.org
2023-07-07 10:41 ` [Bug c++/103952] [11/12/13/14 " rguenth at gcc dot gnu.org
2024-04-13 20:14 ` 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).