RFC: Monitoring old PRs, new dg directives

Mike Stump mikestump@comcast.net
Wed Aug 5 19:44:24 GMT 2020


On Aug 5, 2020, at 5:56 AM, Marek Polacek <polacek@redhat.com> wrote:
> 
> Sorry for being unclear.  Say you have
> 
> // PR c++/55408
> 
> struct foo {
>    template<int*>
>    void bar();
> };
> 
> template<int*...>
> void foo::bar() {}
> 
> int main()
> {
>    extern int i;
>    foo {}.bar<&i>();
> }
> 
> which we wrongly accept.  It might be unclear

Sure, one might think it goes on line 12...  could be wrong.  But, if one wants to do better, one can run clang on it, an it says that the error goes on line 7.

> what line to put that dg-error
> on.  So you put it at the end of the file.  Then when we start issuing an error
> for the testcase, you will just get a FAIL, not an XPASS.  That might be
> confusing if that file isn't in unfixed/.

The people that fix bugs should be able to sort it out.


More information about the Gcc-patches mailing list