Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / crash16.C
blobf80dd10644c557d580903cf2919dec585f6e0a3c
1 // { dg-do compile }
2  
3 // Origin: Alexander Stippler  <stip@mathematik.uni-ulm.de>
4 // PR c++/10079
6 template <bool> struct A {};
8 template <typename> struct B
10   enum { e };
13 template <typename T> A<(B<T>::e && 0)> foo(T) {}
15 template <typename T> void foo(B<T>) {}
17 void bar()
19   B<int> b;
20   foo(b);