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]

Re: error message formatting


>>>>> "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


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