Expected unqualified-id before ')' token?
<p>I want to create a base class and get an error with my initializer list in default constructor. Here are the errors I'm getting:</p>

<pre><code>giasuc.cpp:3:8: error: expected unqualified-id before ')' token
 GiaSuc(): ten(""), soConSinh(0), soLitSua(0) {
        ^
giasuc.cpp:6:14: error: expected ')' before '&amp;' token
 GiaSuc(GiaSuc&amp; mGiasuc): ten(mGiasuc.ten), soConSinh(mGiasuc.soConSinh), soLitS
ua(mGiasuc.soLitSua) {
              ^
giasuc.cpp:9:20: error: expected ')' before '&amp;' token
 GiaSuc(std::string &amp;mTen, short mSoCon = 0, short mLitSua = 0): ten(mTen), soCo
nSinh(mSoCon), soLitSua(mLitSua) {
                    ^
</code></pre>

<p>And this is the class I am building (<strong>giasuc.h</strong>):</p>

<pre><code>#ifndef GIA_SUC_H
#define GIA_SUC_H

#include &lt;iostream&gt;
#include &lt;string&gt;

class GiaSuc {
protected:
    std::string ten;
    short soConSinh;
    short soLitSua;

public:
    GiaSuc();
    GiaSuc(GiaSuc&amp; mGiasuc);
    GiaSuc(std::string &amp;mTen, short mSoCon, short mLitSua);
    virtual void keu() = 0;
    virtual ~GiaSuc() = 0;
};

#endif // GIA_SUC_H
</code></pre>

<p>And <strong>giasuc.cpp</strong>:</p>

<pre><code>#include "giasuc.h"
#include &lt;string&gt;
GiaSuc(): ten(""), soConSinh(0), soLitSua(0) {
}

GiaSuc(GiaSuc&amp; mGiasuc): ten(mGiasuc.ten), soConSinh(mGiasuc.soConSinh), soLitSua(mGiasuc.soLitSua) {
}

GiaSuc(std::string &amp;mTen, short mSoCon = 0, short mLitSua = 0): ten(mTen), soConSinh(mSoCon), soLitSua(mLitSua) {
}
</code></pre>

<p>I am using MinGW g++ (GCC) 4.9.3, and compiling it with:</p>

<p><code>g++ -Wall -Wpedantic -Weffc++ -ansi -c giasuc.cpp</code></p>