On Sun, 8 Sep 2013, Paolo Carlini wrote: > Hi, > > this patchlet fixes the column # of the unused parameter warnings emitted by > do_warn_unused_parameter by explicitly passing DECL_SOURCE_LOCATION (decl) > instead of wrongly relying on '+', which in this case ends up meaning the > location of the function declaration. Tested x86_64-linux.
I would have expected %q+D to use the location of the corresponding decl, not some random other location. So, isn't the bug in the C++ frontend diagnostic machinery? Thanks, Richard.