repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wshadow-11.C
blob
d3b70c39acec1f2c24740a51e17efdfdc15c64a9
1
// PR c++/56100
2
// { dg-options "-Wshadow" }
3
4
int foo; // { dg-message "shadowed declaration" }
5
6
struct bar
7
{
8
template <typename T>
9
void baz () { int foo; } // { dg-warning "shadows a global" }
10
};
11
12
int main ()
13
{
14
bar ().baz <int> ();
15
}