This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/33720] A negative value in OpenMP clause num_threads is not detected at runtime
- From: "geir at cray dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 19 Jun 2013 18:19:29 +0000
- Subject: [Bug libgomp/33720] A negative value in OpenMP clause num_threads is not detected at runtime
- Auto-submitted: auto-generated
- References: <bug-33720-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33720
--- Comment #6 from Geir Johansen <geir at cray dot com> ---
Fails in GCC 4.8.0:
$ gcc --version
gcc (GCC) 4.8.0 20130322 (Cray Inc.)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ gcc -o x -fopenmp bug2883.c -lm
$ ./x
pi 3.1416 n_thread -7
libgomp: Out of memory allocating 481036337712 bytes
$