Re: [PR C++/94946] ambiguous overload regression

2020-05-06 Thread Marek Polacek via Gcc-patches
On Wed, May 06, 2020 at 02:14:03PM -0400, Nathan Sidwell wrote: > @@ -0,0 +1,7 @@ > +// { dg-do compile { target { i?86-*-* x86_64-*-* } } } > +// { dg-options -m32 } > +// PR 94946 > +class a { > + template a(b (*)()); > + template a(b(__attribute__((fastcall)) *c)()); > +}; I think instead o

[PR C++/94946] ambiguous overload regression

2020-05-06 Thread Nathan Sidwell
This appears to fix 94946 -- regular testsuite passes, bootstrapping now. I'll commit if the bootstrap is good. Jakub, ok for gcc-10 too? nathan -- Nathan Sidwell 2020-05-06 Nathan Sidwell PR c++/94946 * decl.c (grokdeclarator): Don't splice template attributes in parm context -- they