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
* name-lookup.c (current_decl_namespace): Non-static.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
hidden-class12.C
1
// Contributed by Dodji Seketeli <dodji@redhat.com>
2
// Origin PR c++/36019
3
// { dg-do compile }
4
5
struct F {
6
static const int x = 0;
7
};
8
9
struct A {
10
template <typename A>
11
static int f ()
12
{
13
return A::x;
14
}
15
};
16
17
18
int
19
main ()
20
{
21
int i = A::f<F> ();
22
return i;
23
}
24