[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / qualttp21.C
blob9abdf653b6d42c984271bab3556f41199d90cc66
1 // Copyright (C) 2002 Free Software Foundation
2 // Contributed by Roger Sayle <roger@eyesopen.com>
3 // { dg-do compile }
5 template <class A>
6 class foo {
7    int _foo;
8 public:
9    foo() {}
10 protected:
11    ~foo() {} // { dg-message "protected" }
14 int main()
16   foo<int> a; // { dg-error "context" }