This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: error message formatting
- To: jbuck at synopsys dot com
- Subject: Re: error message formatting
- From: Mark Mitchell <mmitchell at usa dot net>
- Date: Thu, 16 Apr 1998 00:03:06 -0700
- CC: als at tusc dot com dot au, egcs at cygnus dot com
- References: <199804151709.KAA24258@atrus.synopsys.com>
- Reply-to: mmitchell at usa dot net
>>>>> "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