aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/method.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2002-12-26 18:20:14 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2002-12-26 18:20:14 +0000
commiteab5474f6d127da9625a398ba5c5e759ab73d130 (patch)
tree3b3f68cfdf157cf39c688a14d74c859083f1a06c /gcc/cp/method.c
parentecd4a73b20577345fc2703e7e998b30b68bf75d6 (diff)
downloadgcc-eab5474f6d127da9625a398ba5c5e759ab73d130.zip
gcc-eab5474f6d127da9625a398ba5c5e759ab73d130.tar.gz
gcc-eab5474f6d127da9625a398ba5c5e759ab73d130.tar.bz2
re PR c++/4803 (Inline function never defined)
cp: PR c++/4803 * decl2.c (mark_used): Defer inline functions. (finish_file): Merge deferred_fns loops. Check all used inline functions have a definition. * method.c (make_thunk): Thunks are not inline. testsuite: * g++.dg/warn/inline1.C: New test. * g++.old-deja/g++.brendan/crash64.C: Remove spurious inlines. * g++.old-deja/g++.jason/synth10.C: Likewise. * g++.old-deja/g++.mike/net31.C: Likewise. * g++.old-deja/g++.mike/p8786.C: Likewise. From-SVN: r60521
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r--gcc/cp/method.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index 12a66f6..e5a3bd9 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -344,6 +344,8 @@ make_thunk (tree function, bool this_adjusting,
DECL_NO_STATIC_CHAIN (thunk) = 1;
/* The THUNK is not a pending inline, even if the FUNCTION is. */
DECL_PENDING_INLINE_P (thunk) = 0;
+ DECL_INLINE (thunk) = 0;
+ DECL_DECLARED_INLINE_P (thunk) = 0;
/* Nor has it been deferred. */
DECL_DEFERRED_FN (thunk) = 0;
/* Add it to the list of thunks associated with FUNCTION. */