re PR c++/12932 (ICE with use of ptr-to-function as template arg)
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Tue, 18 Nov 2003 15:54:22 +0000 (15:54 +0000)
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>
Tue, 18 Nov 2003 15:54:22 +0000 (15:54 +0000)
commitc44e68a5f70cca855b79dce8b8ba5c7274a8c731
treebb256035baabb26b8721b836ce81c524c986d175
parentdf964a183fdc0fa5fae0409bfa305ee95b3b3d6b
re PR c++/12932 (ICE with use of ptr-to-function as template arg)

PR c++/12932
* class.c (currently_open_derived_class): Check if
current_class_type is NULL_TREE.
* semantics.c (finish_call_expr): Check if
currently_open_derived_class returns NULL_TREE.
* cp-tree.h (DERIVED_FROM_P): Add parenthesis around PARENT
parameter.

* g++.dg/template/static5.C: New test.

From-SVN: r73705
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/static5.C [new file with mode: 0644]