[Bug c++/99505] ICE Segmentation fault when decltype lambda in parameter list

hewillk at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Mar 10 08:18:55 GMT 2021


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

--- Comment #2 from 康桓瑋 <hewillk at gmail dot com> ---
Yep, wandbox (https://wandbox.org/permlink/OUJpCz6dFrlA1vod) compiles fine. 

This invalid code maybe can reproduce that locally.

int main() {
  [] (decltype([]{})) {} ();
}

(wandbox: https://wandbox.org/permlink/re9O9DXwoaYmNInd)
(godbolt: https://godbolt.org/z/e4e7or)


More information about the Gcc-bugs mailing list