------- Comment #11 from manu at gcc dot gnu dot org 2008-08-10 19:25 ------- (In reply to comment #10) > I think this should be fixable now that mapped locations have gone in. > The key is to have c_lex_with_flags return a value for in_system_header > which comes from the token's "original" location, not the macro expansion > location. I am not sure if this will do the right thing with token pasting.
I am not sure how that will work. How do you specify a different value of system_header for a single location? My understanding is that sysp is for a whole line_map, so you cannot just change its value for a single location. We could handle this for each error but that is not ideal either. This would be trivial if tokens expanded from macros carried two locations around but I guess that is too expensive, isn't it? -- manu at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7263