spew.c (yylex): Give diagnostic.
authorBenjamin Kosnik <bkoz@loony.cygnus.com>
Thu, 24 Sep 1998 22:29:27 +0000 (22:29 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 24 Sep 1998 22:29:27 +0000 (22:29 +0000)

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

gcc/cp/ChangeLog
gcc/cp/spew.c

index 15101231d117c6a0710822f21d58ec338164d579..26aad5f7dd080cf605d83c76123b1375ac07b6e2 100644 (file)
@@ -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.
index 1d2cea1d46f1e4f21ff57a4e7d16d4b87fd50565..554ee4c76ca548d6c7b3f3c2e37d1a91e378887a 100644 (file)
@@ -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.  */