Rebase.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / error3.C
bloba6588c9bf9310be5a64192da97df08d7f8dc8bd7
1 // { dg-do assemble  }
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 10 Jan 2001 <nathan@codesourcery.com>
6 // Bug 1606. We sorry'd issuing an error.
8 struct A {};
9 template <class T = A> class Tpl {};
11 struct B {
12   Tpl<int> s;
15 void foo (B *ptr)
17   ptr->Tpl.t (); // { dg-error "" } template as expression