summaryrefslogtreecommitdiff
path: root/gcc/cp/lex.c
diff options
context:
space:
mode:
authorira <ira@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-10 18:51:24 +0000
committerira <ira@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-10 18:51:24 +0000
commit88da234dc7be67523c21ab558bd6e8b04aff7842 (patch)
treeea5ad261c8b70074c9c7c1c74de2f56e14b206cd /gcc/cp/lex.c
parentb3a976d8079392f6be31f4fe1ed477f34d9fe315 (diff)
downloadgcc-88da234dc7be67523c21ab558bd6e8b04aff7842.tar.gz
Added __attribute__((deprecated)) patches.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48743 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r--gcc/cp/lex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c
index 82b14ae5623..a6d983a1012 100644
--- a/gcc/cp/lex.c
+++ b/gcc/cp/lex.c
@@ -1215,6 +1215,9 @@ do_identifier (token, parsing, args)
else
id = lastiddecl;
+ if (lexing && id && TREE_DEPRECATED (id))
+ warn_deprecated_use (id);
+
/* Do Koenig lookup if appropriate (inside templates we build lookup
expressions instead).