1 // PR c++/94505 - bogus -Wparentheses warning with fold-expression. 2 // { dg-do compile { target c++17 } } 3 // { dg-options "-Wparentheses" } 4 5 template <bool... B> foo()6bool foo () { 7 return ((B && true) || ...); // { dg-bogus "suggest parentheses" } 8 } 9 main()10int main () { 11 foo<true, false, false, true> (); 12 } 13