From: Patrick Palka Date: Tue, 22 Sep 2020 20:26:49 +0000 (-0400) Subject: c++: Add test for PR96652 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c4e4e163c79ca3fca265b85f44b869cb54e802b3;p=gcc.git c++: Add test for PR96652 Fixed by r11-3361. gcc/testsuite/ChangeLog: PR c++/96652 * g++.dg/cpp0x/decltype-96652.C: New test. --- diff --git a/gcc/testsuite/g++.dg/cpp0x/decltype-96652.C b/gcc/testsuite/g++.dg/cpp0x/decltype-96652.C new file mode 100644 index 00000000000..249cce2b9e8 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/decltype-96652.C @@ -0,0 +1,14 @@ +// PR c++/96652 +// { dg-do compile { target c++11 } } + +struct A {}; + +template +struct B +{ + A m; + friend decltype(m); +}; + +A a; +B b;