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

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

// { dg-do compile { target c++11 } }
// { dg-require-effective-target lto }
// { dg-additional-options "-flto" }

// PR 79296 ICE mangling local class of localized instantiation

struct X {
  template <typename T> X (T const *) {
    struct Z {};
  }
};

void Baz ()
{
  struct Y { } y;

  0, X (&y);
}