This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for c++/51930 (instantiation hidden despite visibility attribute)
- From: Jason Merrill <jason at redhat dot com>
- To: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Cc: Manuel López-Ibáñez <manu at gcc dot gnu dot org>
- Date: Mon, 05 Mar 2012 13:05:16 -0500
- Subject: Re: C++ PATCH for c++/51930 (instantiation hidden despite visibility attribute)
- References: <4F1DC0EC.6040609@redhat.com>
While looking at the class variant of this issue, I noticed that some of
the code in determine_visibility was wrong; template_class_depth only
considers unbound template parameters, and the number we want is the
total number of levels. I've also adjusted the diagnostic for misplaced
class attributes as manu requested.
Tested x86_64-pc-linux-pc, applying to trunk.