c++: QT overload regression with attribute [PR94946]
authorNathan Sidwell <nathan@acm.org>
Wed, 6 May 2020 19:09:59 +0000 (12:09 -0700)
committerNathan Sidwell <nathan@acm.org>
Wed, 6 May 2020 19:14:44 +0000 (12:14 -0700)
commitbc95e478febd35e0d1fb13c1833d2383ad0e7d18
tree847d03f15b3c822cef5cab23aa855ddbb38656bf
parent80644a672e635261c15a5804cdcd1eb851814478
c++: QT overload regression with attribute [PR94946]

Jason's fix for 90570 & 79585 was a bit overzealous.  Dependent attribs should still
attach to a parameter decl.

            * decl.c (grokdeclarator): Don't splice template attributes in
            parm context -- they can apply to the parm.
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/g++.dg/ext/attr-parm-1.C [new file with mode: 0644]