annotate gcc/testsuite/g++.dg/pr70965.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-O2 -std=c++11" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 struct A {};
kono
parents:
diff changeset
5 struct B {};
kono
parents:
diff changeset
6 struct C { using p = int *; template <typename> using ra = A; };
kono
parents:
diff changeset
7 struct J : C { template <typename> struct K { typedef C::ra<int> o; }; };
kono
parents:
diff changeset
8 template <typename> struct D
kono
parents:
diff changeset
9 {
kono
parents:
diff changeset
10 struct H : J::K<int>::o { H (J::p, A) : J::K<int>::o () {} };
kono
parents:
diff changeset
11 H d;
kono
parents:
diff changeset
12 D (const char *, const A &x = A ()) : d (0, x) {}
kono
parents:
diff changeset
13 };
kono
parents:
diff changeset
14 extern template class D<char>;
kono
parents:
diff changeset
15 enum L { M };
kono
parents:
diff changeset
16 struct F { virtual char *foo (); };
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
17 template <class> struct I : B { static int foo (int) { return 0; } };
111
kono
parents:
diff changeset
18 struct G { typedef I<int> t; };
kono
parents:
diff changeset
19 void foo (int) { G::t::foo (0); }
kono
parents:
diff changeset
20 void bar (const D<char> &, const D<int> &, int, L);
kono
parents:
diff changeset
21 void baz () try { foo (0); } catch (F &e) { bar (e.foo (), "", 0, M); }