This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: g++ parser problem
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Robert Schweikert <Robert dot Schweikert at abaqus dot com>
- Cc: gcc-dev-lst <gcc at gcc dot gnu dot org>
- Date: 19 Jan 2004 19:21:33 +0100
- Subject: Re: g++ parser problem
- Organization: Integrable Solutions
- References: <1074535620.9026.93.camel@cheetah.hks.com>
Robert Schweikert <Robert.Schweikert@abaqus.com> writes:
| Trying to compile the little code snippet below causes an error as shown
| with g++. It works with other compilers.
Pedantically speaking, to make your program well-formed, don't forget
to include <stdexcept>.
The real problem is a parser problem that is corrected in the new
parser found in GCC-3.4.x (upcoming). You can reproduce it with the
simplified
struct S { };
int main() { throw(S()); }
-- Gaby