Debian Codegraph @

gcc/testsuite/g++.dg/lookup/using66.C

raw
1 // PR c++/92918
2 // { dg-do compile { target c++11 } }
3
4 struct Base03
5 {
6 static void impl();
7 };
8
9 struct Problem : Base03
10 {
11 using Base03::impl;
12 static int impl(char const *);
13
14 template <typename T>
15 auto f(const T &t) const
16 -> decltype(impl(t))
17 {
18 return impl(t);
19 }
20 };
21
22 Problem t;
23 int i = t.f("42");