1 // PR c++/82541
2 // { dg-do compile }
3 // { dg-options "-Wduplicated-branches" }
4 
5 template<int N>
6 struct AR
7 {
8     char a1[N > 0 ? N : 1]; // { dg-bogus "this condition has identical branches" }
9     char a2[N > 0 ? 1 : 1]; // { dg-warning "this condition has identical branches" }
10 };
11 
12 int
main()13 main ()
14 {
15     AR<1> w;
16 }
17