cp-tree.h (UPT_TEMPLATE): Remove.

* cp-tree.h (UPT_TEMPLATE): Remove.
	(UPT_PARMS): Likewise.
	(DECL_NEEDED_P): New macro.
	* decl2.c (finish_vtable_vardecl): Use it.
	(finish_objects): Don't crash with -fsyntax-only.
	(finish_file): Use DECL_NEEDED_P.  Don't prune vtables when
	-fsyntax-only.
	* pt.c (tsubst_friend_function): Remove FIXME that talks about
	obstacks.
	(tsubst_expr): Correct handling of function try-blocks.
	* semantics.c: Include flags.h.
	(expand_body): Don't do RTL generation if -fsyntax-only.
	* Makefile.in (semantics.o): Depends on flags.h.

From-SVN: r29706
This commit is contained in:
Mark Mitchell 1999-09-29 08:16:38 +00:00
parent 84df082b38
commit bea5d553af

View File

@ -0,0 +1,17 @@
// Build don't link:
// Origin: Mark Mitchell <mark@codesourcery.com>
// Special g++ Options: -fsyntax-only
class AAA{
public:
virtual void fff();
};
void AAA::fff() {}
AAA aaa;
main ()
{
aaa.fff();
}