public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/102799] New: decltype with lambda without body error cause ICE
@ 2021-10-16 22:31 nickhuang99 at hotmail dot com
  2021-10-16 22:33 ` [Bug c++/102799] " nickhuang99 at hotmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: nickhuang99 at hotmail dot com @ 2021-10-16 22:31 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102799
           Summary: decltype with lambda without body error cause ICE
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nickhuang99 at hotmail dot com
  Target Milestone: ---

The lambda in outside "decltype" forget to add lambda body which cause ICE
where clang clearly points out this root cause. MSVC++ at least reports error
without crash.


decltype([](decltype([]{}))) gibish;

g++: internal compiler error: Segmentation fault signal terminated program
cc1plus
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 4

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

end of thread, other threads:[~2021-10-17 20:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-16 22:31 [Bug c++/102799] New: decltype with lambda without body error cause ICE nickhuang99 at hotmail dot com
2021-10-16 22:33 ` [Bug c++/102799] " nickhuang99 at hotmail dot com
2021-10-17  5:16 ` hewillk at gmail dot com
2021-10-17 20:05 ` 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).