public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99527] New: ICE when using nested lambdas
@ 2021-03-10 19:26 janekb04 at icloud dot com
2021-08-12 21:54 ` [Bug c++/99527] " pinskia at gcc dot gnu.org
2021-08-13 6:22 ` janekb04 at icloud dot com
0 siblings, 2 replies; 3+ messages in thread
From: janekb04 at icloud dot com @ 2021-03-10 19:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99527
Bug ID: 99527
Summary: ICE when using nested lambdas
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: janekb04 at icloud dot com
Target Milestone: ---
Created attachment 50355
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50355&action=edit
The code that causes the error, the preprocessed version of the code and the
compiler output
When the code in the attachment is compiled it causes an Internal Compiler
Error. The code is also available on godbolt: https://godbolt.org/z/vn35js .
The code doesn't emit any warning using -Wall -Wextra -Wpedantic.
-fno-strict-aliasing -fwrapv don't seem to have any effect.
All the information about the compiler version and environment is available on
godbolt. For clarity, here is the version and flags.
version: g++ (Compiler-Explorer-Build) 11.0.1 20210309 (experimental)
Copyright (C) 2021 Free Software Foundation, Inc.
flags: -std=c++20
The code that causes the error, the preprocessed version of the code and the
compiler output are in the attachment.
Not sure if it is relevant, but I will say just in case that the code is based
on a technique I discussed here:
https://janbielak.com/index.php/2021/01/15/anonymous-types-in-c/ .
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/99527] ICE when using nested lambdas
2021-03-10 19:26 [Bug c++/99527] New: ICE when using nested lambdas janekb04 at icloud dot com
@ 2021-08-12 21:54 ` pinskia at gcc dot gnu.org
2021-08-13 6:22 ` janekb04 at icloud dot com
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-12 21:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99527
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks to be fixed on the trunk.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/99527] ICE when using nested lambdas
2021-03-10 19:26 [Bug c++/99527] New: ICE when using nested lambdas janekb04 at icloud dot com
2021-08-12 21:54 ` [Bug c++/99527] " pinskia at gcc dot gnu.org
@ 2021-08-13 6:22 ` janekb04 at icloud dot com
1 sibling, 0 replies; 3+ messages in thread
From: janekb04 at icloud dot com @ 2021-08-13 6:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99527
--- Comment #2 from janekb04 at icloud dot com <janekb04 at icloud dot com> ---
Indeed, it seems to have been fixed. I'm not sure if this issue should be
closed though. Until the fix comes out in a stable release, there is still the
possibility that a regression will occur and this issue will reoccur.
The issue does occur under g++ 11.2: https://godbolt.org/z/z87ah6ehd .
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-08-13 6:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10 19:26 [Bug c++/99527] New: ICE when using nested lambdas janekb04 at icloud dot com
2021-08-12 21:54 ` [Bug c++/99527] " pinskia at gcc dot gnu.org
2021-08-13 6:22 ` janekb04 at icloud dot com
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).