]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/decltype54.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / decltype54.C
CommitLineData
67f01839
PC
1// PR c++/51908
2// { dg-do compile { target c++11 } }
3
4struct foo1
5{
6 template <typename Ret, typename... Args>
7 operator decltype(static_cast<Ret (*)(Args...)>(nullptr)) () const;
8};
9
10struct foo2
11{
12 template <typename Ret, typename... Args>
13 operator decltype(static_cast<Ret (*)(Args... args)>(nullptr)) () const;
14};
15
16struct foo3
17{
18 template <typename Ret, typename Arg>
19 operator decltype(static_cast<Ret (*)(Arg)>(nullptr)) () const;
20};
21
22struct foo4
23{
24 template <typename Ret, typename Arg>
25 operator decltype(static_cast<Ret (*)(Arg arg)>(nullptr)) () const;
26};
This page took 4.891751 seconds and 5 git commands to generate.