Mercurial > hg > CbC > CbC_gcc
comparison 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 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
12 D (const char *, const A &x = A ()) : d (0, x) {} | 12 D (const char *, const A &x = A ()) : d (0, x) {} |
13 }; | 13 }; |
14 extern template class D<char>; | 14 extern template class D<char>; |
15 enum L { M }; | 15 enum L { M }; |
16 struct F { virtual char *foo (); }; | 16 struct F { virtual char *foo (); }; |
17 template <class> struct I : B { static int foo (int) {} }; | 17 template <class> struct I : B { static int foo (int) { return 0; } }; |
18 struct G { typedef I<int> t; }; | 18 struct G { typedef I<int> t; }; |
19 void foo (int) { G::t::foo (0); } | 19 void foo (int) { G::t::foo (0); } |
20 void bar (const D<char> &, const D<int> &, int, L); | 20 void bar (const D<char> &, const D<int> &, int, L); |
21 void baz () try { foo (0); } catch (F &e) { bar (e.foo (), "", 0, M); } | 21 void baz () try { foo (0); } catch (F &e) { bar (e.foo (), "", 0, M); } |