OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* g++.dg/template/spec10.C: Set exit value to zero on success. Fix
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
crash10.C
1
//Origin: benko@sztaki.hu
2
//PR c++/11432
3
// The mainline ICE on this one between 2003-01-16 and 2003-07-29.
4
5
// { dg-do compile }
6
7
extern "C" void abort();
8
9
10
template <int A>
11
struct a
12
{
13
static int const value = A - 1;
14
};
15
16
17
template <int B>
18
struct b
19
{
20
static int foo()
21
{
22
return a<L>::value;
23
}
24
25
26
static int const L = a<B + 1>::value;
27
};