view gcc/testsuite/g++.dg/template/init-list.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

// Contributed by Gabriel Dos Reis <gdr@codesourcery.com>
// { dg-do compile }

template<typename T>
struct Base {
  Base(int) { }
};

template<typename T>
struct Derived : Base<T> {
  Derived();
};

template<typename T>
Derived<T>::Derived() : Base(4) { } // { dg-error "have any field" }