]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/8266 (Explicit instantiation of a template outside its namespace is broken)
authorGiovanni Bajo <giovannibajo@libero.it>
Thu, 26 Jun 2003 12:59:46 +0000 (14:59 +0200)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 26 Jun 2003 12:59:46 +0000 (12:59 +0000)
commit2f54a1db5eac0c0ba696e8acaf124c659a41adfb
tree162ef2b655a1102fc1a381f676a3629cb63ecd89
parentf5416098688606d9eaef9728de245275fd27d8db
re PR c++/8266 (Explicit instantiation of a template outside its namespace is broken)

From  Giovanni Bajo  <giovannibajo@libero.it>
cp:
       PR c++/8266
        * pt.c (check_explicit_specialization): When looking up a
        template function from an identifier outside class-scope, bind
        it to CP_DECL_CONTEXT.
testsuite:
        PR c++/8266
        * g++.dg/template/explicit-instantiation3.C: New test.

From-SVN: r68527
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/explicit-instantiation3.C [new file with mode: 0644]