// { dg-do compile } // { dg-options "-g" } // Contributed by: // and Niall Douglas // PR c++/14246: ice in write_template_arg_literal while mangling boolean // expressions. namespace N1 { template struct A { enum { Yes = (sizeof(T) == 1) }; }; template struct B { void foo(void); }; template struct B< !A::Yes >; } namespace N2 { template struct A {}; A a; }