blob: ba0f76ed9361bb47371836ee8120b608638fea9a [file] [log] [blame]
// PR c++/19808
// { dg-do compile }
// { dg-options "-Wuninitialized" }
class diagnostic_event {
public:
virtual int get_stack_depth();
};
struct event_range {
event_range(diagnostic_event &initial_event)
: m_stack_depth(initial_event.get_stack_depth()) {}
int m_stack_depth;
};