// PR c++/99120 // { dg-options "-Wshadow" } struct S { void X(); template void fn () { enum { X }; } };