re PR c++/35688 (template visibility not overridden by template arguments)
authorJason Merrill <jason@redhat.com>
Mon, 7 Nov 2011 04:40:14 +0000 (23:40 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 7 Nov 2011 04:40:14 +0000 (23:40 -0500)
commit8e7860a17b0c38d5fae79b39f61e2d74a9be65eb
tree331d493a855e94c131a78809a6e5e3cd9da0986e
parentc0baa6dc73fe81da219a5e8a1b6f83702f7ef879
re PR c++/35688 (template visibility not overridden by template arguments)

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.

From-SVN: r181069
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]