This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Howto dump syntax tree of erroneous program?
- From: Phil Edwards <phil at codesourcery dot com>
- To: Bob Gustafson <bobgus at rcn dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 29 Nov 2004 16:42:30 -0500
- Subject: Re: Howto dump syntax tree of erroneous program?
- References: <1101489837.13564.2.camel@hoho2.chidig.com>
On Fri, Nov 26, 2004 at 11:23:57AM -0600, Bob Gustafson wrote:
> I have used -E, -Q, -dy, and -save-temps options to g++, but the info
> obtained is not quite enough. I could use something that would dump the
> source code file name, line number, name of syntactic element observed
> (e.g., template, non-type template-parameter, template specialization,
> etc.) and the source text snippet at that point.
This is not supported, for various reasons, but there are -fdump* options
which were introduced at different times... I don't think any of them have
been in a released compiler yet; only the development version.
--
Behind everything some further thing is found, forever; thus the tree behind
the bird, stone beneath soil, the sun behind Urth. Behind our efforts, let
there be found our efforts.
- Ascian saying, as related by Loyal to the Group of Seventeen