error message formatting
Per Bothner
bothner@cygnus.com
Thu Apr 16 10:51:00 GMT 1998
Somebody (Mike Stump?) wrote:
> Also, if there exists a typedef name for a type, then we use the
> typedef name instead of the real name, if the real name is a template
> of some kind.
Joe Buck <jbuck@synopsys.com> replied:
> This one, on the other hand, may be trickier, because there are often
> multiple typedefs referring to the same type (especially for maps and
> sets: there is the map iterator as well as the rb_tree iterator). It
> might be tricky to decide which one to choose for display.
You use the typedef name used in the declaration. That should be fairly
easy to get right, given the recent typdef support. Mostly, be more
careful about when to use TYPE_MAIN_VARIANT and when not to.
--Per Bothner
Cygnus Solutions bothner@cygnus.com http://www.cygnus.com/~bothner
More information about the Gcc
mailing list