aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/friend61b.C
blob: 2da5d60b55e319b5a4968fad2ce1576fd0e63424 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/69323

template<int VALUE>
struct Outer
{
  struct StupidValueTrick
  {
    template<int VAL> friend struct Outer::StupidValueTrick; // { dg-error "not a template" }
  };
};
typedef Outer<42>::StupidValueTrick GoodValue;
GoodValue good;