]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: QT overload regression with attribute [PR94946]
authorNathan Sidwell <nathan@acm.org>
Wed, 6 May 2020 19:37:30 +0000 (12:37 -0700)
committerNathan Sidwell <nathan@acm.org>
Wed, 6 May 2020 19:37:30 +0000 (12:37 -0700)
commitefdbd4fbea08005091e490ec3f9972aa9c946374
tree2399aa2e490870214e6de3ed77b70139b405ac05
parentf714faeee44a3d76ef91cc7b58b51bc397812b0a
c++: QT overload regression with attribute [PR94946]

Jason's fix for 90570 & 79585 was a bit overzealous.  Dependent attribs should still
ttach 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]