]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/90455 (braced-init and incomplete type instantiation)
authorMarek Polacek <polacek@redhat.com>
Wed, 17 Jul 2019 18:10:14 +0000 (18:10 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 17 Jul 2019 18:10:14 +0000 (18:10 +0000)
PR c++/90455
* g++.dg/cpp0x/nsdmi-list6.C: New test.

From-SVN: r273553

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/nsdmi-list6.C [new file with mode: 0644]

index d3d710796b8ff7590ece5c979469e3d2deab7125..61baf9c86484c8fa491dee939fe637cfa6d91ae6 100644 (file)
@@ -1,3 +1,8 @@
+2019-07-17  Marek Polacek  <polacek@redhat.com>
+
+       PR c++/90455
+       * g++.dg/cpp0x/nsdmi-list6.C: New test.
+
 2019-07-17  Jan Hubicka  <hubicka@ucw.cz>
 
        * g++.dg/lto/alias-4_0.C
diff --git a/gcc/testsuite/g++.dg/cpp0x/nsdmi-list6.C b/gcc/testsuite/g++.dg/cpp0x/nsdmi-list6.C
new file mode 100644 (file)
index 0000000..83ab2e1
--- /dev/null
@@ -0,0 +1,28 @@
+// PR c++/90455
+// { dg-do compile { target c++11 } }
+
+struct B;
+template <typename a> struct b {
+  void operator()(a *) { sizeof(a); }
+};
+struct c {
+  struct D {
+    using d = B *;
+  };
+
+  using e = D::d;
+  e f();
+};
+template <typename> class g {
+  c h;
+  using i = b<B>;
+public:
+  ~g() {
+    auto j = h.f();
+    k()(j);
+  }
+  i k();
+};
+struct l {
+  g<int> m{};
+};