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
* [Bug c++/102799] decltype with lambda without body error cause ICE
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 ` 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
2 siblings, 0 replies; 4+ messages in thread
From: nickhuang99 at hotmail dot com @ 2021-10-16 22:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102799
--- Comment #1 from qingzhe huang <nickhuang99 at hotmail dot com> ---
Forget to mention that obviously this only happens with "-std=c++20" because of
lambda in unevaluated context support.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/102799] decltype with lambda without body error cause ICE
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
2 siblings, 0 replies; 4+ messages in thread
From: hewillk at gmail dot com @ 2021-10-17 5:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102799
康桓瑋 <hewillk at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hewillk at gmail dot com
--- Comment #2 from 康桓瑋 <hewillk at gmail dot com> ---
dup of PR99505 Comment 2.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/102799] decltype with lambda without body error cause ICE
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
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-17 20:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102799
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 99505.
*** This bug has been marked as a duplicate of bug 99505 ***
^ 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).