decl.c (cp_make_fname_decl): Set DECL_THIS_STATIC at toplevel.
authorJason Merrill <jason@redhat.com>
Thu, 10 Feb 2011 16:30:20 +0000 (11:30 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 10 Feb 2011 16:30:20 +0000 (11:30 -0500)
commitbe771f25275b5d4d1c7033d4d66f1412733f7046
tree0d506bb1580f9a18d55f23dc2e50ed7ef40b9abc
parentc51dc544b1c7f64888f9c3023700a5793e427aba
decl.c (cp_make_fname_decl): Set DECL_THIS_STATIC at toplevel.

* decl.c (cp_make_fname_decl): Set DECL_THIS_STATIC at toplevel.
* semantics.c (finish_fname): Only return the name if we're in
a function.

From-SVN: r170009
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/regress/template-function1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/function1.C