[Bug c++/70201] Dump C++ template instantiations

daniel.gutson at tallertechnologies dot com gcc-bugzilla@gcc.gnu.org
Mon Mar 14 12:06:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70201

--- Comment #2 from Daniel Gutson <daniel.gutson at tallertechnologies dot com> ---
(In reply to Jonathan Wakely from comment #1)
> What do you plan to implement?  It would be better to produce output
> compatible with Templight (http://plc.inf.elte.hu/templight/) rather than a
> GCC-specific dump.

Actually I planned to implement the human-friendly format that gcc currently
outputs when an instantiation fails [with T=...], which I think it will be
useful for most users; however I admit that hving templight support is
interesting.
So I propose to implement
   -fdump-template-instantations=human
or alike, leaving the code cleanly ready to add other dump formats (such as
=templight) or =plugin to enable user-defined dump formats (so templight could
be implemented as one).
What do you think?


More information about the Gcc-bugs mailing list