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
PR c++/34962, c++/34937, c++/34939
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
tmplattr9.C
1
// PR c++/34937, 34962
2
// { dg-options "" }
3
4
struct A
5
{
6
static const int i;
7
};
8
9
template<int> void foo()
10
{
11
int x[A::i] __attribute((vector_size(8)));
12
}
13
14
template<int> struct B
15
{
16
enum { a, b = a };
17
void bar(B<b>) __attribute((weak));
18
};
19
20
void f()
21
{
22
foo<0>();
23
B<0> b;
24
b.bar (B<B<0>::b>());
25
}