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: member templates and default parameter


On Thu, Mar 22, 2001 at 08:48:21AM -0500, Tim Hollebeek wrote:
> On Thu, Mar 22, 2001 at 09:26:56AM +0000, Nathan Sidwell wrote:
> > > 
> > > bash$ g++ -c templ.cc
> > > templ.cc:7: default argument for template parameter in function template `void
> > >    Bar::foo(T)'
> > 
> > not a bug
> 
> However the error message could be improved.  The current one is a
> sentence fragment stating a fact, which isn't particularly helpful.

Strongly agreed.  I had to read the OP's message three times before I
figured out that the line was in fact an error message.

I wonder why isn't "error: " being appended to the start of the diagnostics
text?  Fixing that alone would be an improvement.


Phil

-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.


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