This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
g++ parser problem
- From: Robert Schweikert <Robert dot Schweikert at abaqus dot com>
- To: gcc-dev-lst <gcc at gcc dot gnu dot org>
- Date: 19 Jan 2004 13:07:00 -0500
- Subject: g++ parser problem
- Organization: ABAQUS
Trying to compile the little code snippet below causes an error as shown
with g++. It works with other compilers.
file parseErr.C
#include <new>
using namespace std;
int main ()
{
throw(std::bad_alloc());
}
-> g++ -c parseErr.C
parseErr.C: In function `int main()':
parseErr.C:8: error: parse error before `;' token
Tested versions:
- 2.95.3
- 3.2.2
- 3.3.1
- 3.3.2
I searched the mailing list but couldn't find anything relevant. Does
anyone have any ideas how I can work around this parsing problem?
Help is appreciated.
Thanks,
Robert
--
Robert Schweikert <Robert.Schweikert@abaqus.com>
ABAQUS