This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Howto dump syntax tree of erroneous program?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]