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
PR middle-end/77674
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Woverflow-4.C
blob
1595bcada3eb5713e1ef22d79037c37c5d9c67a9
1
// PR c++/51151
2
// { dg-options "-Wshadow" }
3
4
template<typename T> class C {
5
public:
6
void f() {
7
m = c2 + 1;
8
}
9
static const long unsigned int c1 = 7;
10
static const int c2 = c1 - 1;
11
int m;
12
};
13
template class C<int>;