On 3/7/22 08:55, Roger Sayle wrote:

This patch fixes PR c++/96440 which is an ICE-on-invalid-code regression
affecting mainline.

This patch has been tested on x86_64-pc-linux-gnu, enabling languages
c and c++, with make bootstrap and make -k check with no new failures.
Ok for mainline?

2022-03-07  Roger Sayle  <ro...@nextmovesoftware.com>

gcc/cp/ChangeLog
        PR c++/96440
        * decl.cc (start_decl): Defend against prefix_attributes being
        error_mark_node.

gcc/testsuite/ChangeLog
        PR c++/96440
        * g++.dg/pr96440.C: New test case.

+/* { dg-options "-O2" } */

Please remove this line and put the test in g++.dg/cpp0x/

OK with those changes.

Jason

Reply via email to