public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/67523] ICE with invalid combined simd inside of a template
2015-09-09 16:34 [Bug c++/67523] New: ICE with invalid combined simd inside of a template jakub at gcc dot gnu.org
@ 2015-09-09 16:34 ` jakub at gcc dot gnu.org
2015-09-10 7:36 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-09-09 16:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67523
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |error-recovery, openmp
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2015-09-09
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
Target Milestone|--- |5.3
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/67523] New: ICE with invalid combined simd inside of a template
@ 2015-09-09 16:34 jakub at gcc dot gnu.org
2015-09-09 16:34 ` [Bug c++/67523] " jakub at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-09-09 16:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67523
Bug ID: 67523
Summary: ICE with invalid combined simd inside of a template
Product: gcc
Version: 5.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jakub at gcc dot gnu.org
Target Milestone: ---
struct S { int s; };
template <typename T>
void foo (T &x, T &y)
{
#pragma omp for simd
for (T i = x; i < y; i++) // { dg-error "used with class iteration
variable" }
;
#pragma omp parallel for simd
for (T i = x; i < y; i++) // { dg-error "used with class iteration
variable" }
;
#pragma omp target teams distribute parallel for simd
for (T i = x; i < y; i++) // { dg-error "used with class iteration
variable" }
;
#pragma omp target teams distribute simd
for (T i = x; i < y; i++) // { dg-error "used with class iteration
variable" }
;
}
void
bar ()
{
S x, y;
foo <S> (x, y);
}
ICEs because during instantiation it is harder to find out the inner stmt has
been removed and remove the stmts combined/composited with it.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/67523] ICE with invalid combined simd inside of a template
2015-09-09 16:34 [Bug c++/67523] New: ICE with invalid combined simd inside of a template jakub at gcc dot gnu.org
2015-09-09 16:34 ` [Bug c++/67523] " jakub at gcc dot gnu.org
@ 2015-09-10 7:36 ` jakub at gcc dot gnu.org
2015-09-10 7:42 ` jakub at gcc dot gnu.org
2015-09-10 9:29 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-09-10 7:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67523
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Sep 10 07:35:56 2015
New Revision: 227611
URL: https://gcc.gnu.org/viewcvs?rev=227611&root=gcc&view=rev
Log:
PR c++/67523
* gimplify.c (gimplify_omp_for): If inner stmt is not found
for combined loop, assert seen_error () and return GS_ERROR.
* g++.dg/gomp/pr67523.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/gomp/pr67523.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimplify.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/67523] ICE with invalid combined simd inside of a template
2015-09-09 16:34 [Bug c++/67523] New: ICE with invalid combined simd inside of a template jakub at gcc dot gnu.org
2015-09-09 16:34 ` [Bug c++/67523] " jakub at gcc dot gnu.org
2015-09-10 7:36 ` jakub at gcc dot gnu.org
@ 2015-09-10 7:42 ` jakub at gcc dot gnu.org
2015-09-10 9:29 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-09-10 7:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67523
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Sep 10 07:41:34 2015
New Revision: 227618
URL: https://gcc.gnu.org/viewcvs?rev=227618&root=gcc&view=rev
Log:
PR c++/67523
* gimplify.c (gimplify_omp_for): If inner stmt is not found
for combined loop, assert seen_error () and return GS_ERROR.
* g++.dg/gomp/pr67523.C: New test.
Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/gomp/pr67523.C
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/gimplify.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/67523] ICE with invalid combined simd inside of a template
2015-09-09 16:34 [Bug c++/67523] New: ICE with invalid combined simd inside of a template jakub at gcc dot gnu.org
` (2 preceding siblings ...)
2015-09-10 7:42 ` jakub at gcc dot gnu.org
@ 2015-09-10 9:29 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-09-10 9:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67523
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed for 5.3+.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-09-10 9:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-09 16:34 [Bug c++/67523] New: ICE with invalid combined simd inside of a template jakub at gcc dot gnu.org
2015-09-09 16:34 ` [Bug c++/67523] " jakub at gcc dot gnu.org
2015-09-10 7:36 ` jakub at gcc dot gnu.org
2015-09-10 7:42 ` jakub at gcc dot gnu.org
2015-09-10 9:29 ` jakub at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).