view gcc/testsuite/g++.dg/cpp0x/pr79296.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +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);
}