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
Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
constant6.C
blob
dae01d47be3cbe3e4e06e4d98c8804037ce22626
1
// PR c++/19883
2
3
template<typename T> struct A
4
{
5
static const T i = 1;
6
char a[int(i)];
7
};
8
9
template<int> struct B {};
10
11
template<typename T> struct C
12
{
13
static const T i = 2;
14
B<int(i)> a;
15
};
16
17
template< typename T, T N >
18
struct integral_c
19
{
20
static const T value = N;
21
22
typedef integral_c< T, static_cast<T>((value + 1)) > next;
23
};