Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!iuvax!rutgers!njin!princeton!siemens!demon!dw From: dw@demon.siemens.com (Dan Wolfson) Newsgroups: comp.lang.c++ Subject: Re: Improved switch statement Message-ID: <5275@siemens.UUCP> Date: 4 Jan 89 22:55:12 GMT References: <1031@uqvax.decnet.uq.oz> <77300018@p.cs.uiuc.edu> <574@redsox.UUCP> <137@mole-end.UUCP> Sender: news@siemens.UUCP Reply-To: dw@demon.UUCP (Dan Wolfson) Organization: Siemens Research and Technology Laboratories Lines: 90 A few days ago I mentioned some problems we were having with the OASYS C++ compiler on VMS. For those interested or amused (or who perhaps even have constructive comments) here is the result of trying to compile our bison based parser. This parser does compile successfully with G++ on a sun. ccxx +s -c parse.cxx Glockenspiel C pre-processor ( System V compatible ) Copyright 1986, Glockenspiel Ltd. Warning in File "vaxc$include:stdio.hxx" at line 37 :- the identifier "TRUE" has been defined already Warning in File "vaxc$include:stdio.hxx" at line 38 :- the identifier "FALSE" has been defined already Warning in File "mpl.h" at line 11 :- the identifier "NULL" has been defined already AT&T C++ Translator, release 1.1V2 Copyright 1984 AT&T, Inc. and 1986 Glockenspiel Ltd. sizes and alignments size align largest char 1 1 short 2 2 int 4 4 2147483647 long 4 4 float 4 4 double 8 4 bptr 4 4 wptr 4 4 struct 4 4 struct2 0 1 8 bits in a byte, 32 bits in a word, 4 bytes in a word Dynamic Memory starts at: 398K Memory at 407K, Total allocated is 17K, Input buffer 23 Memory at 430K, Total allocated is 41K, Input buffer 99 Memory at 448K, Total allocated is 58K, Input buffer 401 Memory at 473K, Total allocated is 83K, Input buffer 401 Memory at 506K, Total allocated is 117K, Input buffer 464 Memory at 522K, Total allocated is 133K, Input buffer 464 Memory at 542K, Total allocated is 152K, Input buffer 464 Memory at 563K, Total allocated is 174K, Input buffer 511 Memory at 587K, Total allocated is 197K, Input buffer 1069 Memory at 604K, Total allocated is 215K, Input buffer 1304 Memory at 634K, Total allocated is 244K, Input buffer 1304 Memory at 650K, Total allocated is 261K, Input buffer 1304 Memory at 679K, Total allocated is 290K, Input buffer 1304 Memory at 703K, Total allocated is 314K, Input buffer 1304 Memory at 720K, Total allocated is 331K, Input buffer 1304 Memory at 744K, Total allocated is 354K, Input buffer 1304 Memory at 761K, Total allocated is 372K, Input buffer 1304 Memory at 787K, Total allocated is 398K, Input buffer 1304 Memory at 816K, Total allocated is 427K, Input buffer 1304 Memory at 833K, Total allocated is 443K, Input buffer 1304 Memory at 849K, Total allocated is 460K, Input buffer 1304 Memory at 870K, Total allocated is 481K, Input buffer 1304 Memory at 898K, Total allocated is 509K, Input buffer 1304 Memory at 914K, Total allocated is 525K, Input buffer 1304 Memory at 946K, Total allocated is 556K, Input buffer 1304 Memory at 970K, Total allocated is 581K, Input buffer 1304 Memory at 987K, Total allocated is 598K, Input buffer 1304 Memory at 1012K, Total allocated is 622K, Input buffer 1304 Memory at 1036K, Total allocated is 647K, Input buffer 1304 Memory at 1055K, Total allocated is 666K, Input buffer 1304 Memory at 1080K, Total allocated is 691K, Input buffer 1304 Memory at 1104K, Total allocated is 715K, Input buffer 1304 Memory at 1150K, Total allocated is 761K, Input buffer 1304 Memory at 1185K, Total allocated is 796K, Input buffer 1304 Memory at 1211K, Total allocated is 822K, Input buffer 1304 Memory at 1227K, Total allocated is 838K, Input buffer 1304 Memory at 1243K, Total allocated is 854K, Input buffer 1304 Memory at 1267K, Total allocated is 878K, Input buffer 1304 Memory at 1291K, Total allocated is 902K, Input buffer 1304 Memory at 1308K, Total allocated is 919K, Input buffer 1304 Memory at 1329K, Total allocated is 940K, Input buffer 1304 Memory at 1346K, Total allocated is 956K, Input buffer 1304 Memory at 1370K, Total allocated is 980K, Input buffer 1304 Memory at 1388K, Total allocated is 999K, Input buffer 1304 Memory at 1420K, Total allocated is 1031K, Input buffer 1304 Memory at 1436K, Total allocated is 1047K, Input buffer 1530 Memory at 1458K, Total allocated is 1069K, Input buffer 3054 Memory at 1474K, Total allocated is 1085K, Input buffer 4246 Memory at 1490K, Total allocated is 1101K, Input buffer 5467 Memory at 1506K, Total allocated is 1117K, Input buffer 6653 Memory at 1522K, Total allocated is 1133K, Input buffer 8053 Memory at 1538K, Total allocated is 1149K, Input buffer 9287 Memory at 1554K, Total allocated is 1165K, Input buffer 9287 Memory at 1570K, Total allocated is 1181K, Input buffer 9979 "parse.y", line 1064: internal <> error: input buffer overflow Any ideas? Dan