* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / diagnostic / inhibit-warn-2.C
blobcb16b4cef8d762fed34cc2f5a54ee45ffa15be14
1 // PR c++/65882
2 // PR c++/66467
3 // { dg-do compile }
5 template <bool>
6 struct A
8   typedef int type;
9 };
11 struct B
13   static const int value = 0;
16 template <class>
17 struct C
19   typedef int type;
22 template <class>
23 struct F : B {};
25 class D
27   template <class Expr>
28   typename A<F<typename C<Expr>::type>::value || B::value>::type
29   operator=(Expr); // { dg-message "declared" }
32 void fn1()
34   D opt;
35   opt = 0; // { dg-error "private" }