public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/60682] New: [4.9 Regression][OpenMP] ICE on an assignment of local variable inside SIMD loop
@ 2014-03-27 10:08 izamyatin at gmail dot com
  2014-03-27 13:19 ` [Bug middle-end/60682] " jakub at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: izamyatin at gmail dot com @ 2014-03-27 10:08 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60682
           Summary: [4.9 Regression][OpenMP] ICE on an assignment of local
                    variable inside SIMD loop
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: izamyatin at gmail dot com

Seems r207629 (fix for PR59984) introduces given issue.

Test is 

class V3
{
public:
    float v[1];

    V3() {}

    V3(const V3 &x)
      {
       v[0] = x.v[0];
      }
};

struct CCC
{
  V3 a[16];
};

void foo(int num, CCC &cc) 
{

#pragma omp simd
  for(int i = 0; i < num; ++i)
    {
      V3 v3;
      cc.a[i] = v3; 
    }
}

compilation flags: -O1  -fopenmp

ICE:
internal compiler error: in create_tmp_var, at gimple-expr.c:506
       cc.a[i] = v3;
                   ^
0x97ab03 create_tmp_var(tree_node*, char const*)

Note that v3's privatization makes ICE disappear.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-28  9:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-27 10:08 [Bug middle-end/60682] New: [4.9 Regression][OpenMP] ICE on an assignment of local variable inside SIMD loop izamyatin at gmail dot com
2014-03-27 13:19 ` [Bug middle-end/60682] " jakub at gcc dot gnu.org
2014-03-27 13:24 ` jakub at gcc dot gnu.org
2014-03-28  9:09 ` izamyatin at gmail dot com

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