public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99505] New: ICE Segmentation fault when decltype lambda in parameter list
@ 2021-03-10  5:00 hewillk at gmail dot com
  2021-03-10  7:44 ` [Bug c++/99505] " marxin at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: hewillk at gmail dot com @ 2021-03-10  5:00 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99505
           Summary: ICE Segmentation fault when decltype lambda in
                    parameter list
           Product: gcc
           Version: 9.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

This may be related/duplicated to the 99478, but I am not sure.

The following code will trigger ICE only on gcc-9:

int main() {
  [] (decltype([]{})) {} ({});
}

(godbolt: https://godbolt.org/z/xdr94q)

But this will trigger ICE on gcc-9, gcc-10 and gcc-11:

struct S {
  template <typename T>
  operator T() { return {}; }
};

int main() {
  [] (decltype([]{})) {} (S{});
}

(godbolt: https://godbolt.org/z/3dh477)

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

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10  5:00 [Bug c++/99505] New: ICE Segmentation fault when decltype lambda in parameter list hewillk at gmail dot com
2021-03-10  7:44 ` [Bug c++/99505] " marxin at gcc dot gnu.org
2021-03-10  8:18 ` hewillk at gmail dot com
2021-03-10  8:26 ` marxin at gcc dot gnu.org
2021-03-10  8:27 ` marxin at gcc dot gnu.org
2021-10-17 20:05 ` pinskia at gcc dot gnu.org
2022-01-20  3:36 ` pinskia at gcc dot gnu.org
2024-04-13  7:41 ` 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).