Initializer list issue

From: Christopher Benson-Manica (ataru_at_nospam.cyberspace.org)
Date: 04/30/04


Date: Fri, 30 Apr 2004 12:44:27 +0000 (UTC)

I recently had an issue that I'll try to condense for your reviewing
pleasure:

class A
{
  protected:
    my_type Member;

  public:
    A() {/* initialize Member */}
};

class B : public A
{
  private:
    my_other_type MyMember;

  public:
    B() : A(), MyMember(Member) {}
};

This compiled, but crashed at run time. Was it because the order in
which the actions in the initializer list are taken is unspecified?

-- 
Christopher Benson-Manica  | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org    | don't, I need to know.  Flames welcome.


Relevant Pages

  • Re: Initializer list issue
    ... > I recently had an issue that I'll try to condense for your reviewing ... are in the class declaration, ...
    (comp.lang.cpp)
  • Re: Initializer list issue
    ... Christopher Benson-Manica wrote: ... > I recently had an issue that I'll try to condense for your reviewing ...
    (comp.lang.cpp)
  • [PATCH 00/52] KVM patch queue review for 2.6.25 merge window (part III)
    ... The third installment of the 2.6.25 kvm patch queue, for your reviewing ... pleasure. ... a diffstat of the files affected by these 53 patches is ...
    (Linux-Kernel)
  • Re: Arthur Rubenstein
    ... the "private issue" Lp I once heard.I have never had the pleasure of ... It will sound at a lower volume due to this. ... rebalance a poor recording it ALWAYS has to be brought to a lower ...
    (rec.music.classical.recordings)
  • Re: Quitting...again
    ... only for me it was pipes - mmmmm. ... Trouble was I was ... always very self-conscious and could only enjoy it in private. ... time I am not making the mistake of trying to pretend there was no pleasure ...
    (alt.support.stop-smoking)