From 01d3d58151a8e8f21e92b4b29069be6fe6af7057 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Fri, 22 Feb 2019 23:16:14 +0000 Subject: [PATCH] re PR c++/84676 (internal compiler error: Segmentation fault (build_new_op_1)) 2019-02-22 Paolo Carlini PR c++/84676 * g++.dg/cpp0x/pr84676.C: New. From-SVN: r269138 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/pr84676.C | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/pr84676.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8d19215db76..4d3d307d4a6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-02-22 Paolo Carlini + + PR c++/84676 + * g++.dg/cpp0x/pr84676.C: New. + 2019-02-22 Martin Sebor * gcc.dg/tree-ssa/builtin-sprintf-10.c: Cast wchar_t to wint_t diff --git a/gcc/testsuite/g++.dg/cpp0x/pr84676.C b/gcc/testsuite/g++.dg/cpp0x/pr84676.C new file mode 100644 index 00000000000..94d86716649 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr84676.C @@ -0,0 +1,4 @@ +// { dg-do compile { target c++11 } } + +int a; +void b(__attribute__((c([](int *) {} (a == (0 = auto)))))); // { dg-error "" } -- 2.30.2