blob: 3f10440735ff9ac83c69bda9b5659d54f6f223a2 [file] [log] [blame]
// PR c++/64717
// { dg-do compile }
// { dg-options "-O2 -Wuninitialized -fsanitize=vptr" }
class ios {};
struct stringstream : virtual ios {
stringstream (char *);
~stringstream ();
};
struct string { char *c_str (); };
string make_str ();
void
bar ()
{
stringstream param (make_str ().c_str ()); // { dg-bogus "is used uninitialized" }
}