Fix C++ testsuite failures.

Lee Millward lee.millward@gmail.com
Tue Mar 7 23:29:00 GMT 2006


The comment was already present in the test, I merely added in the
dg-warning to prevent the test from failing.

I forgot to mention in my original message that the patch was tested
on i686-pc-linux-gnu with a make -k check-c++ and resolved all the
unexpected failures.

On 3/7/06, Andrew Pinski <pinskia@physics.uc.edu> wrote:
>
> On Mar 7, 2006, at 6:25 PM, Lee Millward wrote:
>
> > -  int * foo = &x; // in C++ it's perfectly legal to do this
> > +  int * foo = &x; // in C++ it's perfectly legal to do this {
> > dg-warning "address requested" }
> >
>
> C++ says this is legal but why warn about it in the first place?
>
> This is why I did not fix the testcases as obvious when I filed
> the bug.
>
> -- Pinski
>
>



More information about the Gcc-patches mailing list