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
tree: Don't reuse types if TYPE_USER_ALIGN differ [PR94775]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wshadow-9.C
blob
836bce62cf0c183c1808c5071dc457875127fd8d
1
// PR c++/56100
2
// { dg-options "-Wshadow" }
3
4
int foo; // { dg-message "shadowed declaration" }
5
6
template <typename T>
7
struct bar
8
{
9
void baz () { int foo; } // { dg-warning "shadows a global" }
10
};
11
12
int main ()
13
{
14
bar <int> ().baz ();
15
}