Solution: bison/g++/catch exception

Alexandra Stehman <stehmanaf@nswc.navy.mil>
4 Aug 1999 01:20:39 -0400

          From comp.compilers

Related articles
bison/g++/catch exception stehmanaf@nswc.navy.mil (Alexandra) (1999-07-30)
Solution: bison/g++/catch exception stehmanaf@nswc.navy.mil (Alexandra Stehman) (1999-08-04)
| List of all articles for this month |

From: Alexandra Stehman <stehmanaf@nswc.navy.mil>
Newsgroups: comp.compilers
Date: 4 Aug 1999 01:20:39 -0400
Organization: Deja.com - Share what you know. Learn what you don't.
References: 99-07-140
Keywords: yacc, C++

Thanks to all who emailed suggestions. The solution: to include
except.h.


That's what one gets for making a java programmer do C++. ;-)


> SYMPTOMS:
> In the grammar file, I've tried to put a few exceptions in the action
> code. The only exceptions I've used are bad_alloc on any calls to "new"
> the parser might make. It seems that on the Solaris and HP systems,
> bison (or g++) can't handle the "catch" statement. ...
--
Alexandra F. Stehman
Computer Scientist
Naval Surface Warfare Center, Dahlgren Division
Dahlgren, Virginia


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.