On Mon, Jan 18, 2016 at 10:53:51AM +0100, Dominik Vogt wrote:
> On Mon, Jan 11, 2016 at 12:28:40PM +0100, Dominik Vogt wrote:
> > The attached patch fixes a test failure caused by expecting the
> > error message for the wrong line.
> 
> Can this be committed?
> 
> > gcc/testsuite/ChangeLog
> > 

Missing
        PR c++/68810

> >     * g++.dg/cpp0x/constexpr-reinterpret1.C: Fix line number that is
> >     expected to generate an error.

Ok with that change, I'm afraid we can't do better for GCC 6.

> > --- a/gcc/testsuite/g++.dg/cpp0x/constexpr-reinterpret1.C
> > +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-reinterpret1.C
> > @@ -15,10 +15,8 @@ public:
> >    };
> >  
> >    constexpr static Inner & getInner()
> > -  {
> > -    /* I am surprised this is considered a constexpr */
> > -    return *((Inner *)4);
> > -  } // { dg-error "reinterpret_cast" "" }
> > +  /* I am surprised this is considered a constexpr */
> > +  { return *((Inner *)4); } // { dg-error "reinterpret_cast" "" }
> >  };
> >  
> >  B B::instance;

        Jakub

Reply via email to