[Bug c++/49418] openmp default(none) in template function

2011-06-21 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49418 Jason Merrill changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug c++/49418] openmp default(none) in template function

2011-06-21 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49418 --- Comment #4 from Jakub Jelinek 2011-06-21 13:41:19 UTC --- template void f (int const x) { #pragma omp parallel default(none) int y = x; } template void g (int const x) { #pragma omp parallel default(none) shared(x) int y = x; } void h

[Bug c++/49418] openmp default(none) in template function

2011-06-21 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49418 --- Comment #3 from Jakub Jelinek 2011-06-21 13:34:35 UTC --- Perhaps the top-level quals from the older type could be used, if the standard doesn't disallow it? Like, if T const arg is instantiated with T int or const int, it would be int const

[Bug c++/49418] openmp default(none) in template function

2011-06-21 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49418 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org,

[Bug c++/49418] openmp default(none) in template function

2011-06-15 Thread gcc-bug at safetymail dot info
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49418 --- Comment #1 from gcc-bug at safetymail dot info 2011-06-15 11:07:12 UTC --- Created attachment 24534 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24534 test case