Sha256: 4a82a91e2fbd4a10646fef6c0bd65d91e784fe9f7593314c2ee5fe9078072a13

Contents?: true

Size: 488 Bytes

Versions: 2

Compression:

Stored size: 488 Bytes

Contents

// Reported by Przemyslaw Szymanski on 02.06.2016

template <typename T = void, bool B1 = true> // (1) fail if there are multiple params with default values
class A : public T
{
public:
    typedef A<T, B1> this_type;

    A(int i ) : m_i(i)
    {
    }

    static A create(int i)
    {
        return this_type(i); // (2) fail here
    }

    static int g_i;
private:
    int m_i;
};

template <typename T, bool B1>
int A<T, B1>::g_i; // (3) fail during parsing static member definition

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ctags.rb-1.1.4 ext/vendor/ctags/Units/parser-cxx.r/bug-github-pull-972.cpp.d/input.cpp
ctags.rb-1.1.3 ext/vendor/ctags/Units/parser-cxx.r/bug-github-pull-972.cpp.d/input.cpp