public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99584] New: ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack
@ 2021-03-14 8:45 hewillk at gmail dot com
2021-03-15 8:48 ` [Bug c++/99584] [11 Regression] " rguenth at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: hewillk at gmail dot com @ 2021-03-14 8:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99584
Bug ID: 99584
Summary: ICE Segmentation fault when expanding lambda noexcept
specifier with invalid parameter pack
Product: gcc
Version: 11.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 PR 99513 or PR 99583, but I am not sure.
The following invalid code triggers ICE in gcc-trunk:
void f(...);
template <typename... Args>
void g(Args... args) {
f([](Args) noexcept(args) {} ...);
}
int main() { g(0); }
(godbolt: https://gcc.godbolt.org/z/477Mn8)
(wandbox: https://wandbox.org/permlink/qA74qnIHdaZSX6JF)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/99584] [11 Regression] ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack
2021-03-14 8:45 [Bug c++/99584] New: ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack hewillk at gmail dot com
@ 2021-03-15 8:48 ` rguenth at gcc dot gnu.org
2021-04-01 17:49 ` jason at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-03-15 8:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99584
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |11.0
Summary|ICE Segmentation fault when |[11 Regression] ICE
|expanding lambda noexcept |Segmentation fault when
|specifier with invalid |expanding lambda noexcept
|parameter pack |specifier with invalid
| |parameter pack
Known to work| |10.2.1
Keywords| |ice-on-invalid-code
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2021-03-15
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/99584] [11 Regression] ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack
2021-03-14 8:45 [Bug c++/99584] New: ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack hewillk at gmail dot com
2021-03-15 8:48 ` [Bug c++/99584] [11 Regression] " rguenth at gcc dot gnu.org
@ 2021-04-01 17:49 ` jason at gcc dot gnu.org
2021-04-01 17:52 ` jason at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2021-04-01 17:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99584
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |jason at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/99584] [11 Regression] ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack
2021-03-14 8:45 [Bug c++/99584] New: ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack hewillk at gmail dot com
2021-03-15 8:48 ` [Bug c++/99584] [11 Regression] " rguenth at gcc dot gnu.org
2021-04-01 17:49 ` jason at gcc dot gnu.org
@ 2021-04-01 17:52 ` jason at gcc dot gnu.org
2021-04-01 20:07 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2021-04-01 17:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99584
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-invalid-code |ice-on-valid-code
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Probably the same issue as PR 95583.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/99584] [11 Regression] ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack
2021-03-14 8:45 [Bug c++/99584] New: ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack hewillk at gmail dot com
` (2 preceding siblings ...)
2021-04-01 17:52 ` jason at gcc dot gnu.org
@ 2021-04-01 20:07 ` cvs-commit at gcc dot gnu.org
2021-04-01 20:07 ` jason at gcc dot gnu.org
2021-04-01 20:08 ` jason at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-01 20:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99584
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:0cf4813202f19768e31666f6aa82bde4dce4065a
commit r11-7953-g0cf4813202f19768e31666f6aa82bde4dce4065a
Author: Jason Merrill <jason@redhat.com>
Date: Thu Apr 1 15:17:40 2021 -0400
c++: variadic lambda noexcept-specifier [PR99583]
The tree-walk looking for parameter packs didn't find this one because we
weren't stepping into TYPE_RAISES_EXCEPTIONS.
gcc/cp/ChangeLog:
PR c++/99583
PR c++/99584
* tree.c (cp_walk_subtrees) [FUNCTION_TYPE]: Walk into
TYPE_RAISES_EXCEPTIONS.
gcc/testsuite/ChangeLog:
PR c++/99583
* g++.dg/cpp0x/lambda/lambda-variadic12.C: New test.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/99584] [11 Regression] ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack
2021-03-14 8:45 [Bug c++/99584] New: ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack hewillk at gmail dot com
` (3 preceding siblings ...)
2021-04-01 20:07 ` cvs-commit at gcc dot gnu.org
@ 2021-04-01 20:07 ` jason at gcc dot gnu.org
2021-04-01 20:08 ` jason at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2021-04-01 20:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99584
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/99584] [11 Regression] ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack
2021-03-14 8:45 [Bug c++/99584] New: ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack hewillk at gmail dot com
` (4 preceding siblings ...)
2021-04-01 20:07 ` jason at gcc dot gnu.org
@ 2021-04-01 20:08 ` jason at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2021-04-01 20:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99584
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
*** Bug 99583 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-04-01 20:08 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-14 8:45 [Bug c++/99584] New: ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack hewillk at gmail dot com
2021-03-15 8:48 ` [Bug c++/99584] [11 Regression] " rguenth at gcc dot gnu.org
2021-04-01 17:49 ` jason at gcc dot gnu.org
2021-04-01 17:52 ` jason at gcc dot gnu.org
2021-04-01 20:07 ` cvs-commit at gcc dot gnu.org
2021-04-01 20:07 ` jason at gcc dot gnu.org
2021-04-01 20:08 ` jason 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).