]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/initlist98.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist98.C
CommitLineData
d78aecf4
JM
1// PR c++/83227
2// { dg-do compile { target c++11 } }
3
4#include <initializer_list>
5
6template <typename d> struct f {
7 f(std::initializer_list<d>) {}
8};
9
10struct h {};
11struct i : h {
12 i();
13};
14void foo(f<h>);
15int main() {
16 foo({i{}});
17}
This page took 1.653447 seconds and 5 git commands to generate.