cp-tree.h (UPT_TEMPLATE): Remove.
authorMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 29 Sep 1999 08:16:38 +0000 (08:16 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 29 Sep 1999 08:16:38 +0000 (08:16 +0000)
* 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

gcc/testsuite/g++.old-deja/g++.other/syntax1.C [new file with mode: 0644]

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 (file)
index 0000000..90419a2
--- /dev/null
@@ -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();
+}