repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
template
/
crash10.C
blob
62647ca723af0c93fc56d5e9658075106e4a0e5e
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
};