OSDN Git Service

PR c++/35688
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Nov 2011 04:40:14 +0000 (04:40 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Nov 2011 04:40:14 +0000 (04:40 +0000)
commitb4f861b4e0d2475dd125ee4d055e8c33a45fbcba
tree331d493a855e94c131a78809a6e5e3cd9da0986e
parent32be7d00433aa365a9b04942c042cacdb6dca269
PR c++/35688
gcc/c-common/
* c-common.c (decl_has_visibility_attr): Split out from...
(c_determine_visibility): ...here.
* c-common.h: Declare it.
gcc/cp/
* decl2.c (constrain_visibility): Check decl_has_visibility_attr
rather than DECL_VISIBILITY_SPECIFIED.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181069 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c-common.h
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/visibility/template7.C [new file with mode: 0644]