gcc/testsuite/g++.dg/debug/pr34895.C
raw| 1 | // { dg-do compile } |
| 2 | // { dg-options "-O2 -g" } |
| 3 | // |
| 4 | // Copyright (C) 2008 Free Software Foundation, Inc. |
| 5 | // Contributed by Theodore.Papadopoulo 20 Jan 2008 <[email protected]> |
| 6 | |
| 7 | struct A { |
| 8 | A() { } |
| 9 | unsigned operator()() { return 1; } |
| 10 | }; |
| 11 | struct B: public A { |
| 12 | typedef const A base; |
| 13 | using base::operator(); |
| 14 | B() { } |
| 15 | }; |
| 16 | int |
| 17 | main() { |
| 18 | B b; |
| 19 | } |