* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / template2.C
blob0e8921261e89515477ddf5ddea5735301293c332
1 // { dg-do compile }
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 24 Mar 2003 <nathan@codesourcery.com>
6 // PR 10199. Lookup problems
8 class X {
9 public:
10   template<int d>
11   int bar ();
14 template<int x>
15 int fooo ();
17 template<class T>
18 void bar (T& g)
20   int kk = fooo<17>();  // OK
21   X x;
22   int k = x.bar<17>();  // Not OK
25 int main ()
27   X x;
28   int k=x.bar<17>();    // OK
29   int n;
30   bar(n);