C++: calling member functions within constructor?
<p>The following code raises a runtime error:</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;iterator&gt;
#include &lt;ext/slist&gt;

class IntList :  public __gnu_cxx::slist&lt;int&gt; {
public:
    IntList() { tail_ = begin(); } // seems that there is a problem here
    void append(const int node) { tail_ = insert_after(tail_, node); }

private:
    iterator tail_;
};

int main() {
    IntList list;

    list.append(1);
    list.append(2);
    list.append(3);

    for (IntList::iterator i = list.begin(); i != list.end(); ++i) {
        std::cout &lt;&lt; *i &lt;&lt; " ";
    }

    return 0;
}
</code></pre>

<p>Seems that the problem is in the constructor <code>IntList()</code>. Is it because it calls the member function <code>begin()</code>?</p>
