summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/temp-constructor-bug.C
blob: a06720702050790ffb4af3ac0f15e28b166a0d95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-options "--std=c++0x" }

struct S { };

struct T
{
  S s;
};

void f(T const &);

void g()
{
  f((T){S()});
}