Howto dump syntax tree of erroneous program?

Phil Edwards phil@codesourcery.com
Mon Nov 29 22:57:00 GMT 2004


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



More information about the Gcc mailing list