aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/decltype67.C
blob: e8042ac59e7dadf78126df5c3b3e46fbcf45c1f6 (plain)
1
2
3
4
5
6
7
// PR c++/85279
// { dg-do compile { target c++11 } }

template<typename T> struct A
{
  void foo(decltype(T())::Y);	// { dg-error {decltype\(T\(\)\)::Y} }
};