public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [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

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).