mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-21 17:21:03 +08:00
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:
parent
84df082b38
commit
bea5d553af
17
gcc/testsuite/g++.old-deja/g++.other/syntax1.C
Normal file
17
gcc/testsuite/g++.old-deja/g++.other/syntax1.C
Normal 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();
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user