diff options
author | ira <ira@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-10 18:51:24 +0000 |
---|---|---|
committer | ira <ira@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-10 18:51:24 +0000 |
commit | 88da234dc7be67523c21ab558bd6e8b04aff7842 (patch) | |
tree | ea5ad261c8b70074c9c7c1c74de2f56e14b206cd /gcc/cp/lex.c | |
parent | b3a976d8079392f6be31f4fe1ed477f34d9fe315 (diff) | |
download | gcc-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.c | 3 |
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). |