This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ PATCH for c++/55275 (abi_tag and explicit specialization)


On 15 November 2012 01:51, Jason Merrill wrote:
> This bug arose because I was using DECL_SOURCE_LOCATION to determine whether
> this is the first declaration of the class.  Which may be fragile, but I
> don't see another way to do it.  But for an explicit specialization we were
> treating the template declaration as the initial declaration, so the
> specialization looked like a redeclaration.  Fixed by adjusting the
> DECL_SOURCE_LOCATION when we decide that we're dealing with a new explicit
> specialization.  This also improves some error message locations.

The improved error locations fix PR c++/47343, thanks!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]