https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46836

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-10-09
            Summary|reporting locations for     |implement #pragma
                   |names in std namespace      |system_header
                   |could be improved           |"canonical_filename"
     Ever confirmed|0                           |1

--- Comment #9 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to do...@seketeli.org from comment #8)
> > #pragma GCC system_header "canonical_name"
> 
> Seconded.

Thus, confirmed. Also, it should be an easy hack for a new contributor. Just
process the optional parameter, store the filename somehow, and when printing
diagnostic, use the canonical name if it exists. Also, adjust the #line
directive, so this works even in preprocessed files. I don't think it should
mess up with the original LOCATION_FILE(), since that is used for various other
things.

Reply via email to