This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/53934] Better CPP macro diagnostics
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 09 Oct 2012 09:15:10 +0000
- Subject: [Bug fortran/53934] Better CPP macro diagnostics
- Auto-submitted: auto-generated
- References: <bug-53934-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53934
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #1 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-10-09 09:15:10 UTC ---
(In reply to comment #0)
> Expected: Something similar. Possibly related to PR44054 and PR53552
See tree-diagnostic.c: maybe_unwind_expanded_macro_loc.
You could reimplement it in gfortran using fortran diagnostics machinery. But
if you reimplemented the gfortran diagnostics machinery in terms of the general
diagnostics machinery, it will just work (and you will also fix those PRs).
Note that the function does not use anything C/C++ specific, not even
tree-specific.