OSDN Git Service

a66450f45201baffb5c599afadf3435fbd9de9f0
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / crash10.C
1 // { dg-do assemble  }
2
3 template<int M, int N>
4 class GCD {
5 public:
6   enum { val = (N == 0) ? M : GCD<N, M % N>::val }; // { dg-warning "division" "division" }
7 // { dg-error "not a valid" "valid" { target *-*-* } 6 }
8 };
9
10 int main() {
11   GCD< 1, 0 >::val; // { dg-message "instantiated" }
12 }