error message formatting

Mark Mitchell mmitchell@usa.net
Thu Apr 16 00:01:00 GMT 1998


>>>>> "Joe" == Joe Buck <jbuck@synopsys.com> writes:

    >> It would be nice if there was some readable formatting for
    >> error messages instead of the following.  There are three very
    >> long lines here.

    Joe> [ Huge errors deleted ]

    Joe> One possibility would be to suppress template arguments when
    Joe> they match the default.  We then have

We have to be careful that we don't introduce ambiguity in the
process.  It may be possible to do so by dropping defaulted arguments,
e.g.:

  template <class T, class U = T**>
  void f();

  template <class T*, class U = T*>
  void f();

Now, f<int*> is ambiguous, but f<int*, int**> is not.  

-- 
Mark Mitchell <mmitchell@usa.net>
http://home.earthlink.net/~mbmitchell
Consulting Services Available



More information about the Gcc mailing list