------- Comment #3 from pinskia at gcc dot gnu dot org 2009-10-02 16:57 ------- Hmm, considering the C99 standard has a footnote about __FILE__ (149) 149) The presumed source file name and line number can be changed by the #line directive.
So of course it is hard to define these in the preprocessed source. I really don't think there should be a note about these predefined macro names based on what is mentioned in the standard. Since they are dependent on the file that is being compiled (not preprocessed). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41540