aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>1999-09-29 08:16:38 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-09-29 08:16:38 +0000
commitbea5d553af68dca2f659f39cd7fb234106942f68 (patch)
tree306160644974614987adaea482315417f5a0bb49 /gcc
parent84df082b3840bad65a6985f079e1b73f82cff90a (diff)
downloadgcc-bea5d553af68dca2f659f39cd7fb234106942f68.zip
gcc-bea5d553af68dca2f659f39cd7fb234106942f68.tar.gz
gcc-bea5d553af68dca2f659f39cd7fb234106942f68.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/syntax1.C17
1 files changed, 17 insertions, 0 deletions
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 0000000..90419a2
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/syntax1.C
@@ -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();
+}