From: Paolo Carlini Date: Thu, 29 Mar 2018 08:43:43 +0000 (+0000) Subject: re PR c++/84606 (internal compiler error: Segmentation fault (enclosing_instantiation... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52df8bd93305f5ccd6a78eeebef9eb85c2208fed;p=gcc.git re PR c++/84606 (internal compiler error: Segmentation fault (enclosing_instantiation_of())) 2018-03-29 Paolo Carlini PR c++/84606 * g++.dg/cpp0x/pr84606.C: New. From-SVN: r258947 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cb5c2c37733..c5ee0187599 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,4 +1,9 @@ -2018-03-20 Carl Love +2018-03-29 Paolo Carlini + + PR c++/84606 + * g++.dg/cpp0x/pr84606.C: New. + +2018-03-29 Carl Love Revert 2017-09-27 Carl Love diff --git a/gcc/testsuite/g++.dg/cpp0x/pr84606.C b/gcc/testsuite/g++.dg/cpp0x/pr84606.C new file mode 100644 index 00000000000..60d4af5e70c --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr84606.C @@ -0,0 +1,10 @@ +// { dg-do compile { target c++11 } } + +template +struct s { + struct { + void __attribute__((common([] { struct d }))) g(); // { dg-error "expected|attribute" } + } f; +}; + +s a {};