[C++ PATCH] Fix PR/8266
Nathan Sidwell
nathan@codesourcery.com
Wed Jun 25 09:55:00 GMT 2003
Giovanni Bajo wrote:
> 2003-06-24 Giovanni Bajo <giovannibajo@libero.it>
>
> PR c++/8266
> * pt.c (check_explicit_specialization): When looking up the
> template function from an identifier within class-scope, bind
> it to CP_DECL_CONTEXT before.
before what ? :)
> --- 1678,1693 ----
> my_friendly_assert (TREE_CODE (declarator) == IDENTIFIER_NODE,
> 0);
> if (!ctype)
> ! {
> ! /* If there is no class context, the explicit instantiation
> ! must be at namespace scope. */
> ! if (!DECL_NAMESPACE_SCOPE_P (decl))
> ! abort();
use my_friendly_assert please
> // { dg-do compile }
> // Origin: <sebor at roguewave dot com>
> // c++/8266: Explicit instantiation of a template outside its namespace is
> // broken
doesn't this need a copyright notice? What do we do about taking test cases out
of bugzilla?
other than that, looks good to me.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
The voices in my head said this was stupid too
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
More information about the Gcc-patches
mailing list