User forums > Help

GDB output parsing error

<< < (2/2)

oBFusCATed:
OsminohejTygr:
Can you make a simple test cpp file, which can be used to reproduces the bug?
I've tried with a simple structure, but it doesn't fail :(

OsminohejTygr:
Ok. I`ll try, when I get home tonight  ;)

OsminohejTygr:
There is an example code to reproduce the problem. Tested under windows and linux.


--- Code: ---#include <iostream>

template <class V>
class CTestClass
{
    private:
        const static int mVar = 1;
        V mValue;

    public:
        CTestClass(const V& aValue):
            mValue(aValue)
        {
        }

        void PrintValue()
        {
            std::cout << this->mValue << std::endl;
        }
};

int main(int argv, char** argc)
{
    CTestClass<int> lTestClassInst(3);
    lTestClassInst.PrintValue(); // set breakpoint here and watch lTestClassInst
    return 0;
}
--- End code ---

oBFusCATed:
Thanks, should be fixed in the rev 8037 and in the next nightly build.

OsminohejTygr:
Excelent. Thank you very much :)

Navigation

[0] Message Index

[*] Previous page

Go to full version