From: Mark Mitchell Date: Wed, 29 Sep 1999 08:16:38 +0000 (+0000) Subject: cp-tree.h (UPT_TEMPLATE): Remove. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bea5d553af68dca2f659f39cd7fb234106942f68;p=gcc.git 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 --- diff --git a/gcc/testsuite/g++.old-deja/g++.other/syntax1.C b/gcc/testsuite/g++.old-deja/g++.other/syntax1.C new file mode 100644 index 00000000000..90419a20466 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/syntax1.C @@ -0,0 +1,17 @@ +// Build don't link: +// Origin: Mark Mitchell +// Special g++ Options: -fsyntax-only + +class AAA{ +public: + virtual void fff(); +}; + +void AAA::fff() {} + +AAA aaa; + +main () +{ + aaa.fff(); +}