OSDN Git Service

PR c++/12932
authorlerdsuwa <lerdsuwa@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Nov 2003 15:54:22 +0000 (15:54 +0000)
committerlerdsuwa <lerdsuwa@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Nov 2003 15:54:22 +0000 (15:54 +0000)
commit3b91e7e73b4f25ca48ceea82eda283be597d986d
treebb256035baabb26b8721b836ce81c524c986d175
parent4aa80500cdf200ba3f124e52beb65ab74bd75d83
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73705 138bc75d-0d04-0410-961f-82ee72b054a4
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]