https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88568
--- Comment #29 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Aug 30 12:14:46 2019 New Revision: 275126 URL: https://gcc.gnu.org/viewcvs?rev=275126&root=gcc&view=rev Log: Backported from mainline 2019-03-09 Jakub Jelinek <ja...@redhat.com> PR c/88568 * tree.c (handle_dll_attribute): Don't clear TREE_STATIC for dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT. * g++.dg/other/pr88568.C: New test. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/other/pr88568.C Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/gcc/tree.c