diff options
author | Benjamin Kosnik <bkoz@loony.cygnus.com> | 1998-09-24 22:29:27 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 1998-09-24 22:29:27 +0000 |
commit | 269d984e3436c5b300c6d75be0883cb130a1a4a8 (patch) | |
tree | 1fca93229648d3be85d7cb5b62a05726281a9ef8 /gcc | |
parent | 0dbb7a102fb7de141d7043daedaabe62a5a8465e (diff) | |
download | gcc-269d984e3436c5b300c6d75be0883cb130a1a4a8.zip gcc-269d984e3436c5b300c6d75be0883cb130a1a4a8.tar.gz gcc-269d984e3436c5b300c6d75be0883cb130a1a4a8.tar.bz2 |
spew.c (yylex): Give diagnostic.
�
1998-09-24 Benjamin Kosnik <bkoz@loony.cygnus.com>
* spew.c (yylex): Give diagnostic.
* hash.h (is_reserved_word): Add export.
* gxx.gperf: Ditto.
* lex.h (rid): Add RID_EXPORT.
* lex.c (init_parse): Ditto.
From-SVN: r22577
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/cp/spew.c | 13 |
2 files changed, 21 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1510123..26aad5f7 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,11 @@ +1998-09-24 Benjamin Kosnik <bkoz@loony.cygnus.com> + + * spew.c (yylex): Give diagnostic. + * hash.h (is_reserved_word): Add export. + * gxx.gperf: Ditto. + * lex.h (rid): Add RID_EXPORT. + * lex.c (init_parse): Ditto. + Tue Sep 22 21:01:19 1998 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> * friend.c (do_friend): Make warning a full sentence. diff --git a/gcc/cp/spew.c b/gcc/cp/spew.c index 1d2cea1..554ee4c 100644 --- a/gcc/cp/spew.c +++ b/gcc/cp/spew.c @@ -360,6 +360,19 @@ yylex () break; case SCSPEC: + /* If export, warn that it's unimplemented and go on. */ + if (tmp_token.yylval.ttype == get_identifier("export")) + { + warning ("keyword 'export' not implemented and will be ignored"); + consume_token (); + goto retry; + } + else + { + ++first_token; + break; + } + case NEW: /* do_aggr needs to check if the previous token was RID_NEW, so just increment first_token instead of calling consume_token. */ |