[Bug c++/36237] New: internal compiler error: in lower_stmt, at gimple-low.c:282

2008-05-14 Thread silviug at gmail dot com
* the exact version of GCC;
* the system type;
* the options given when GCC was configured/built;

The output of g++ -v is:
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr
--enable-targets=all --enable-checking=release --build=i486-linux-gnu
--host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)

* the complete command line that triggers the bug;

The command is simply `make' wich will turn into:
g++ -Wall -O0 -fopenmp qsort_openmp_v2.cpp utils.o -o qsort_openmp_v2

* the compiler output (error messages, warnings, etc.); and

qsort_openmp_v2.cpp: In function ‘int main(int, char**)’:
qsort_openmp_v2.cpp:0: internal compiler error: in lower_stmt, at
gimple-low.c:282
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see .
make: *** [qsort_openmp_v2] Error 1


* the preprocessed file (*.i*) that triggers the bug, generated by adding
-save-temps to the complete compilation command, or, in the case of a bug
report for the GNAT front end, a complete set of source files (see below).

I will attach them.


-- 
   Summary: internal compiler error: in lower_stmt, at gimple-
low.c:282
   Product: gcc
   Version: 4.2.3
Status: UNCONFIRMED
  Severity: minor
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: silviug at gmail dot com


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



[Bug c++/36237] internal compiler error: in lower_stmt, at gimple-low.c:282

2008-05-14 Thread silviug at gmail dot com


--- Comment #1 from silviug at gmail dot com  2008-05-14 21:06 ---
Created an attachment (id=15638)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15638&action=view)
Archive containing source code wich generated the bug, makefile and *.ii files.


-- 


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



[Bug c++/36237] internal compiler error: in lower_stmt, at gimple-low.c:282

2008-05-14 Thread silviug at gmail dot com


--- Comment #2 from silviug at gmail dot com  2008-05-14 21:11 ---
(In reply to comment #1)
> Created an attachment (id=15638)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15638&action=view) [edit]
> Archive containing source code wich generated the bug, makefile and *.ii 
> files.
> 

The problem comes from the following lines from 'qsort_openmp_v2.cpp' file:
121:#pragma omp parallel shared(vec, globalTodoStack, \
122:numBusyThreads) private(localTodoStack)

More precisely, if I erase 'private(localTodoStack)' it compiles successfully.


-- 


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



[Bug c++/36237] internal compiler error: in lower_stmt, at gimple-low.c:282 erase 'private(localTodoStack)' it compiles successfully.

2008-05-23 Thread silviug at gmail dot com


--- Comment #4 from silviug at gmail dot com  2008-05-23 12:51 ---
(In reply to comment #3)
> Note that your example is very buggy.

Yes, I must agree, I'm new to OpenMP :) In the end I solved the issues you are
pointing out.

Still I shouldn't get a compiler internal error for buggy code, right?


-- 


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