blob: d31de33e2750c91aca8c202a75d8a827e2442bb2 [file] [log] [blame]
// PR c++/10245
struct X {};
struct Y {
Y ();
operator X () const;
private:
Y (const Y &);
};
Y y;
void foo() {
X x = (1 ? Y() : Y());
}