view gcc/testsuite/g++.dg/pr86696.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
line wrap: on
line source

/* PR tree-optimization/86696 - ICE in handle_char_store at
   gcc/tree-ssa-strlen.c
   { dg-do compile }
   { dg-options "-O2 -Wall -std=c++11" } */

typedef char a;
template <typename b> struct c {
  int d;
  b e;
};
struct f;
class g {
public:
  void h(c<f>);
};
enum i {};
enum j : a { k, l };
struct f {
  i m;
  a n;
  a o;
  a p;
  j family;
};
void fn1() {
  i format{};
  f info{format, a(), 0, 4, l};
  g dest;
  dest.h({format, info});
}