On Aug 5, 2020, at 5:56 AM, Marek Polacek <pola...@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.

Reply via email to