* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / parse / missing-template1.C
blobfcc3aa0c3ff414fe712e4265d663f36d8ceeb966
1 // PR c++/8736
2 // Origin: Peter Kolloch <pkolloch@gmx.ne>
3 // { dg-do compile }
5 template <typename T> struct A
7     template <typename U> struct B
8     {
9         typedef int X;
10     };
13 template <typename T> void foo()
15     typedef typename A<T>::B<T>::X Y; // { dg-error "non-template" "non" }
16     // { dg-error "not declare" "decl" { target *-*-* } .-1 }
17     // { dg-message "note" "note" { target *-*-* } .-2 }
20 void bar()
22     foo<int>();