+2017-10-23 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/77555
+ * g++.dg/torture/pr77555.C: New.
+
2017-10-23 Richard Biener <rguenther@suse.de>
PR tree-optimization/82129
--- /dev/null
+// { dg-do link }
+// { dg-options "-std=c++11" }
+
+extern "C" int printf(const char*, ...);
+struct A {
+ A(int, char *p2) { printf(p2); }
+};
+template <int, typename> struct B { static A static_var; };
+template <int LINE, typename GETTER>
+A B<LINE, GETTER>::static_var{0, GETTER::get()};
+struct C {
+ void unused() {
+ static char function_static;
+ struct D {
+ static char *get() { return &function_static; }
+ };
+ auto addr = B<0, D>::static_var;
+ }
+};
+int main() {}