re PR c++/22139 (Segfault with templates and friend functions)
authorMark Mitchell <mark@codesourcery.com>
Sun, 17 Jul 2005 22:02:09 +0000 (22:02 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 17 Jul 2005 22:02:09 +0000 (22:02 +0000)
commit4d0839ffa09e52ebf5078fb9c1e0be073932de32
tree4d70f2e6000447d2f08e910d9fb5dea2f5bd0f1c
parent17c999e88a90037ad64a39473f05f5cbc6617fcf
re PR c++/22139 (Segfault with templates and friend functions)

PR c++/22139
* cp-tree.h (DECL_TEMPLATE_INFO): Improve documentation.
* decl.c (duplicate_decls): Re-register template specializations
for functions that have DECL_TEMLPLATE_INFO, even if they do not
have DECL_TEMPLATE_INSTANTIATION set.

PR c++/22139
* g++.dg/template/friend36.C: New test.

From-SVN: r102118
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/friend36.C [new file with mode: 0644]