This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/41540] -dM -E doesn't #define __FILE__
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Oct 2009 16:21:44 -0000
- Subject: [Bug preprocessor/41540] -dM -E doesn't #define __FILE__
- References: <bug-41540-1186@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2009-10-02 16:21 -------
__FILE__ is dependent on # markers and #line markers in the preprocessed source
so this is invalid. __LINE__ is also dependent too.
If you look at the preprocessed source you will notice still some # in there.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41540