On Mon, May 20, 2013 at 08:27:44AM -0400, Jason Merrill wrote: > The way I was testing for whether or not we need to look at template > args for a particular decl was broken; DECL_TI_ARGS may not reflect > the number of template headers for the enclosing class if that class > is an explicit specialization. > > Tested x86_64-pc-linux-gnu, applying to trunk. Jakub: it would be > nice to get this into 4.8.1, since it affects symbol visibility. > What do you think?
If you feel it is safe for 4.8.1, let's apply it there. > commit 761bc243b609db7b75f71f465812e0491212d63b > Author: Jason Merrill <ja...@redhat.com> > Date: Fri May 17 16:06:04 2013 -0400 > > PR c++/57317 > * decl2.c (determine_visibility): Use PRIMARY_TEMPLATE_P to decide > whether a template has its own args. Jakub