------- Comment #1 from jakub at gcc dot gnu dot org 2008-11-05 21:28 ------- Why do you think this is a bug?
-Wshadow warns even for: int foo; int (*fn) (int foo); and this is pretty much the same thing. Before PR37302 G++ has been buggy and didn't declare parameters where it was supposed to do. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38022