This commit was manufactured by cvs2svn to create branch
[official-gcc.git] / gcc / testsuite / g++.dg / other / crash-3.C
blobd13821dee798d6c808dab2ebe874e95d738d44af
1 // { dg-do compile }
2 // { dg-options "-g" }
3 // Contributed by: <schmid at snake dot iap dot physik dot tu-darmstadt dot de>
4 //   and Niall Douglas <s_gccbugzilla at nedprod dot com>
5 // PR c++/14246: ice in write_template_arg_literal while mangling boolean
6 //   expressions.
8 namespace N1 {
10   template <typename T>
11   struct A {
12       enum { Yes = (sizeof(T) == 1) };
13   };
15   template<bool T>
16   struct B {
17       void foo(void);
18   };
20   template struct B< !A<int>::Yes >;
25 namespace N2 {
27   template<bool> struct A {};
28   A<!false> a;