re PR c/88568 ('dllimport' no longer implies 'extern' in C)
authorJakub Jelinek <jakub@redhat.com>
Sat, 9 Mar 2019 12:08:23 +0000 (13:08 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 9 Mar 2019 12:08:23 +0000 (13:08 +0100)
commit3568d2d5fa77f5c8798c1dca46b1f738d2097202
treeaa41e3327876f34e6b3f79db2fa22e61a1058305
parent04e5c73db8b51c76bff5fb30553089ccfa7bb5fc
re PR c/88568 ('dllimport' no longer implies 'extern' in C)

PR c/88568
* attribs.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.

From-SVN: r269525
gcc/ChangeLog
gcc/attribs.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr88568.C [new file with mode: 0644]