------- Comment #3 from manu at gcc dot gnu dot org 2010-03-22 23:38 ------- I think we want this also for better diagnostics and in the long term for caret diagnostics. At a minimum, we should handle the case
foo( x, /* warning/error about x but location is that of either foo or the ';' */ y); I am not sure how difficult is to implement this in the straightforward cases. More complex cases would be those affected by folding and constant arguments (which do not have locations). A first step would be to propagate the correct locations when building expressions (adding location parameters to build_* functions and passing down the correct value). -- manu at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu dot org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |diagnostic Last reconfirmed|0000-00-00 00:00:00 |2010-03-22 23:38:29 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43486