[Bug libgomp/26452] New: Internal compiler error with openmp

2006-02-23 Thread pkambadu at gmail dot com
g++ version:
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gomp-sources/configure --prefix=/home/pkambadu/gomp 
Thread model: posix
gcc version 4.2.0 20060223 (experimental)

Program:
void foo() { 
#pragma omp parallel
}

Output:

/home/pkambadu/gomp/bin/g++ -c hello_world.cpp -L/home/pkambadu/gomp/lib
-I/home/pkambadu/gomp/include -fopenmp
hello_world.cpp: In function ‘void foo()’:
hello_world.cpp:2: internal compiler error: in cp_parser_pragma, at
cp/parser.c:17661


-- 
   Summary: Internal compiler error with openmp
   Product: gcc
   Version: 4.2.0
Status: UNCONFIRMED
  Severity: critical
  Priority: P3
 Component: libgomp
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pkambadu at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26452



[Bug libgomp/26452] Internal compiler error with openmp

2006-02-23 Thread pkambadu at gmail dot com


--- Comment #1 from pkambadu at gmail dot com  2006-02-24 01:48 ---
I tried looking into what might be wrong and have the following thoughts:

1. in gcc/cp/parser.c, line 17661, there is the following assertion


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26452



[Bug libgomp/26452] Internal compiler error with openmp

2006-02-23 Thread pkambadu at gmail dot com


--- Comment #2 from pkambadu at gmail dot com  2006-02-24 01:52 ---
Sorry for the incomplete post. Here is the complete story:

I tried looking into what might be wrong and have the following thoughts:

In gcc/cp/parser.c, line 17661, there is the following assertion

assert(id >= PRAGMA_FIRST_EXTERNAL);

This is infact the assertion which is failing. On looking up the enum for the
OMP pragmas in gcc/c-pragma.h, I find that PRAGMA_FIRST_EXTERNAL is defined
after all the OMP pragmas and hence this assertion will always fail. I was
under the impression that the C++ front-end was also ready to be used. Is this
something which has been done intentionally?

I have never looked into gcc sources before, so if my question or comments seem
stupid, please take it with a pinch of salt.

Anju 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26452



[Bug libgomp/26452] Internal compiler error with openmp

2006-02-23 Thread pkambadu at gmail dot com


--- Comment #3 from pkambadu at gmail dot com  2006-02-24 02:24 ---
This was a big misunderstanding. I thought all the front-ends for openmp had
been integrated into trunk. it seems like only the C one has been integrated. 
I downloaded the right branch as mentioned on the web-site. 


-- 

pkambadu at gmail dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26452