2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / pr86696.C
blobc7ce17c80da84e5183f39f5a5db950997eae6327
1 /* PR tree-optimization/86696 - ICE in handle_char_store at
2    gcc/tree-ssa-strlen.c
3    { dg-do compile }
4    { dg-options "-O2 -Wall -std=c++11" } */
6 typedef char a;
7 template <typename b> struct c {
8   int d;
9   b e;
11 struct f;
12 class g {
13 public:
14   void h(c<f>);
16 enum i {};
17 enum j : a { k, l };
18 struct f {
19   i m;
20   a n;
21   a o;
22   a p;
23   j family;
25 void fn1() {
26   i format{};
27   f info{format, a(), 0, 4, l};
28   g dest;
29   dest.h({format, info});