Solution: bison/g++/catch exception

Alexandra Stehman <>
4 Aug 1999 01:20:39 -0400

          From comp.compilers

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

From: Alexandra Stehman <>
Newsgroups: comp.compilers
Date: 4 Aug 1999 01:20:39 -0400
Organization: - 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

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

> 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.