Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: VDR developer version 1.1.13
Robert Schiele wrote:
>
> On Sun, Oct 13, 2002 at 08:42:08PM +0200, Klaus Schmidinger wrote:
> > Robert Schiele wrote:
> > >
> > > On Sun, Oct 13, 2002 at 06:07:42PM +0200, Klaus Schmidinger wrote:
> > > > Ahhrgghhh - I hate it when that happens...
> > > > Do you get an actual *error* message or is this just a warning?
> > >
> > > This is an error message with gcc 3.2.
> >
> > Well, I have to admit that I don't see why this would have to be
> > an actual *error*. A warning would have done just as well...
>
> Well, in fact this _is_ illegal code as it does not conform to ISO
> C++. And ISO C++ is right here, as otherwise behaviour would be
> undefined when the first and the second declaration are different.
> Note, that in general the compiler cannot decide equality when
> reaching the second declaration.
>
> It was decided in February this year that gcc should issue an error,
> not just a warning. You may want to read the discussion at
> http://gcc.gnu.org/ml/gcc-patches/2002-02/msg01131.html.
>
> And my personal optinion is that, if there was code that makes the
> compiler more complicated just to hide a bug in the compiled
> application, this code should be removed.
I agree that it's not correct, but since g++ didn't bother at all so far
(and the one I currently use still doesn't), I find it a little hard that
this has been made right to an _error_. It wouldn't have made any difference
if it had been made a warning - except that it would still have compiled...
Anyway, I've fixed it for the next release.
Klaus
--
_______________________________________________________________
Klaus Schmidinger Phone: +49-8635-6989-10
CadSoft Computer GmbH Fax: +49-8635-6989-40
Hofmark 2 Email: kls@cadsoft.de
D-84568 Pleiskirchen, Germany URL: www.cadsoft.de
_______________________________________________________________
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index