https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83911

            Bug ID: 83911
           Summary: ICE with target attribute on constructor in
                    gimplify_expr at gimplify.c:11321
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roland at rschulz dot eu
  Target Milestone: ---
            Target: x86-64

> g++ test_target2_min.cc -c
test_target2_min.cc: In function 'SimdFloat foo()':
test_target2_min.cc:13:12: internal compiler error: in gimplify_expr, at
gimplify.c:12193
     return 1;
            ^
0x8d839b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-7.2.0/gcc/gimplify.c:12193

test_target2_min.cc:
class SimdFloat
{
public:
    __attribute__ ((target ("default")))
    SimdFloat(float x) {}

    __attribute__ ((target ("avx2")))
    SimdFloat(float x) {}
};

SimdFloat foo()
{
    return 1;
}

Reply via email to