This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

g++ parser problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]