Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wshadow-compatible-local-3.C
blob: 0e5ece74b37b7711ac92bb9dbbb72c5d1cf564f3 [
file
] [
log
] [
blame
]
// PR c++/100608
// { dg-do compile { target c++11 } }
// { dg-additional-options "-Wshadow=compatible-local" }
template
<typename>
class
X
{};
void
foo
()
{
auto
a
=
X
<
class
a
>{};
// no warning, not compatible
}