public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/104670] New: ICE when using decltype of a lambda returning a struct inside of a struct
@ 2022-02-23 20:03 krzysio.kurek at wp dot pl
  2022-02-23 20:30 ` [Bug c++/104670] " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: krzysio.kurek at wp dot pl @ 2022-02-23 20:03 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104670
           Summary: ICE when using decltype of a lambda returning a struct
                    inside of a struct
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: krzysio.kurek at wp dot pl
  Target Milestone: ---

Created attachment 52502
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52502&action=edit
-freport-bug output

GCC ICEs when compiling the following piece of code:

struct foo {
    decltype([] { return (struct {
        int fn() {}
    }){}; }) bar;
};

Compiled with `-std=c++20`
Past stable releases of GCC report "confused by earlier errors, bailing out"
without crashing instead.

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

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-23 20:03 [Bug c++/104670] New: ICE when using decltype of a lambda returning a struct inside of a struct krzysio.kurek at wp dot pl
2022-02-23 20:30 ` [Bug c++/104670] " pinskia at gcc dot gnu.org
2022-02-23 21:08 ` pinskia at gcc dot gnu.org
2022-02-24 13:12 ` [Bug c++/104670] [9/10/11/12 Regression] " jakub at gcc dot gnu.org
2022-05-27  9:47 ` [Bug c++/104670] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:48 ` jakub at gcc dot gnu.org
2023-07-07 10:42 ` [Bug c++/104670] [11/12/13/14 " rguenth at gcc dot gnu.org
2024-04-13 20:18 ` 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).