This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: What does this warning mean?
- To: martin at mira dot isdn dot cs dot tu-berlin dot de (Martin von Loewis)
- Subject: Re: What does this warning mean?
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Mon, 24 Aug 98 8:19:08 PDT
- Cc: peter dot simons at gmd dot de, egcs at cygnus dot com
> > Can anyone explain me what egcs is complaining about?
>
> I'd think the error message is pretty clear. You have a prototype
> declaration of RegExec in line 70 of RegExp.hpp that defines default
> arguments.
>
> You have another prototype declaration (or a definition) in line 74,
> and this provides default arguments as well. It is an error to give
> default arguments twice in standard C++.
Correct, but in the past g++ ignored this problem (in fact, it's unclear
to me exactly what happened if the values of the default arguments
differ: do you get the last one the compiler saw, or the first one).
For that reason this is probably going to become an FAQ.