PR target/82823
* g++.dg/torture/pr82823.C: New test.
From-SVN: r254398
2017-11-03 Jeff Law <law@redhat.com>
+ PR target/82823
+ * g++.dg/torture/pr82823.C: New test.
+
* gcc.target/i386/stack-check-12.c: New test.
2017-11-03 Jakub Jelinek <jakub@redhat.com>
--- /dev/null
+// { dg-do compile }
+// { dg-additional-options "-fstack-clash-protection" }
+// { dg-require-effective-target supports_stack_clash_protection }
+
+
+class a
+{
+public:
+ ~a ();
+ int b;
+};
+class c
+{
+public:
+ a m_fn1 ();
+};
+class d
+{
+ int e ();
+ c f;
+};
+int
+d::e ()
+{
+ return f.m_fn1 ().b;
+}