https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95222

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jason Merrill
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:0c473d8f32510fcc96d584ee5099b856cfd3d8d6

commit r10-8189-g0c473d8f32510fcc96d584ee5099b856cfd3d8d6
Author: Jason Merrill <ja...@redhat.com>
Date:   Mon May 25 19:04:05 2020 -0400

    c++: Fix stdcall attribute in template. [PR95222]

    Another case that breaks with my fix for PR90750: we shouldn't move type
    attributes in TYPENAME context either, as there's no decl for them to move
    to.

    gcc/cp/ChangeLog:

            PR c++/95222
            * decl.c (grokdeclarator): Don't shift attributes in TYPENAME
            context.

    gcc/testsuite/ChangeLog:

            PR c++/95222
            * g++.dg/ext/tmplattr10.C: New test.

    (cherry picked from commit 7e7d9fcff56385812764cba63e1ebf6f4c6c0320)

Reply via email to