gcc/testsuite/g++.dg/template/crash85.C
raw| 1 | // Contributed by Dodji Seketeli <[email protected]> |
| 2 | // Origin: PR c++/37142 |
| 3 | // { dg-do compile } |
| 4 | |
| 5 | template<typename T, const T a, template <typename U, U u> class W> struct A {}; |
| 6 | |
| 7 | template<typename T, const T t> struct B {}; |
| 8 | |
| 9 | int |
| 10 | main () |
| 11 | { |
| 12 | A<long, 0, B> a; |
| 13 | return 0; |
| 14 | } |
| 15 |