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

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).