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++/54858
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
constant2.C
1
// PR c++/49896
2
3
template<class C>
4
class test {
5
protected:
6
static const int versionConst = 0x80000000;
7
enum { versionEnum = versionConst };
8
public:
9
int getVersion();
10
};
11
12
template<class C>
13
int test<C>::getVersion() {
14
return versionEnum;
15
}
16
17
class dummy_class {};
18
19
int main() {
20
test<dummy_class> t;
21
return t.getVersion();
22
}