From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EED20385703B; Mon, 26 Oct 2020 14:08:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EED20385703B From: "benjamin.freist at hexagon dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/97582] New: Regression Internal compiler error in lambda Date: Mon, 26 Oct 2020 14:08:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: benjamin.freist at hexagon dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Oct 2020 14:08:30 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97582 Bug ID: 97582 Summary: Regression Internal compiler error in lambda Product: gcc Version: 9.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: benjamin.freist at hexagon dot com Target Milestone: --- Created attachment 49440 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D49440&action=3Dedit ICE can be reproduced with this This is an ICE that we noticed when upgrading from gcc 7 to 9. I tried to remove everything that doesn't trigger the bug. The resulting so= urce file is attached to this report. The command line to reproduce is g++ -std=3Dc++17 -c crash_obfuscated.cpp I'm using ubuntu 20.04 lsb_release -a LSB Version:=20=20=20 core-11.1.0ubuntu2-noarch:printing-11.1.0ubuntu2-noarch:security-11.1.0ubun= tu2-noarch Does not appear on gcc 7. g++-7 --version g++-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 g++-7 -std=3Dc++17 -c ~/Desktop/crash_obfuscated.cpp works fine Appears on gcc 9. g++ --version g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 g++ -std=3Dc++17 -c ~/Desktop/crash_obfuscated.cpp=20 crash_obfuscated.cpp: In instantiation of =E2=80=98C5::get():: [with auto:1 =3D C6]=E2=80=99: /usr/include/c++/9/bits/predefined_ops.h:283:11: required from =E2=80=98b= ool __gnu_cxx::__ops::_Iter_pred<_Predicate>::operator()(_Iterator) [with _Iter= ator =3D __gnu_cxx::__normal_iterator >; _Predicate =3D C5::get()::]=E2=80=99 /usr/include/c++/9/bits/stl_algo.h:120:14: required from =E2=80=98_RandomAccessIterator std::__find_if(_RandomAccessIterator, _RandomAccessIterator, _Predicate, std::random_access_iterator_tag) [with _RandomAccessIterator =3D __gnu_cxx::__normal_iterator= >; _Predicate =3D __gnu_cxx::__ops::_Iter_pred >]= =E2=80=99 /usr/include/c++/9/bits/stl_algo.h:161:23: required from =E2=80=98_Iterat= or std::__find_if(_Iterator, _Iterator, _Predicate) [with _Iterator =3D __gnu_cxx::__normal_iterator >; _Predicate =3D __gnu_cxx::__ops::_Iter_pred >]=E2=80=99 /usr/include/c++/9/bits/stl_algo.h:3963:28: required from =E2=80=98_IIter std::find_if(_IIter, _IIter, _Predicate) [with _IIter =3D __gnu_cxx::__normal_iterator >; _Predicate =3D C5::get()::]=E2=80=99 /usr/include/c++/9/bits/stl_algo.h:526:47: required from =E2=80=98bool std::none_of(_IIter, _IIter, _Predicate) [with _IIter =3D __gnu_cxx::__normal_iterator >; _Predicate =3D C5::get()::]=E2=80=99 /usr/include/c++/9/bits/stl_algo.h:544:27: required from =E2=80=98bool std::any_of(_IIter, _IIter, _Predicate) [with _IIter =3D __gnu_cxx::__normal_iterator >; _Predicate =3D C5::get()::]=E2=80=99 /home/freist@volumegraphics.com/Desktop/crash_obfuscated.cpp:77:6: requir= ed from here /home/freist@volumegraphics.com/Desktop/crash_obfuscated.cpp:76:61: internal compiler error: Segmentation fault 76 | return find (v2.begin (), v2.end (), elem.getLink ()) =3D=3D = v2.end (); |=20=20=20=20=20=20=20=20=20=20=20=20=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See for instructions.=