repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
crash10.C
blob
bd2efc673aa8dd71a3608666a1a1122e1daf2e78
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-error "" } division
7
};
8
9
int main() {
10
GCD< 1, 0 >::val; // { dg-error "" } instantiated
11
}