nvcc (cudafe) doesn't compile that code

Hi folks,

apparently I ran into some compilation issues with that simple test code:

[codebox]

#include <stdio.h>

#include <GL/gl.h>

class Test

{

public :

    int getMagic() const { return (int)_glBindBuffer; }

private:

typedef void (*TestCase) (GLenum target);

    TestCase _glBindBuffer;        

};

int main()

{

Test* test = new Test;

printf("%d\n", test->getMagic());

return 0;

}

[/codebox]

My system:

nvcc : Cuda compilation tools, release 2.0, V0.2.1221

gcc : gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

The code doesn’t compile with nvcc, it seems that cudafe isn’t able to parse it. Chaning the “private:” declaration in the class to “public:” does solve the problem.

Anyone experience the same problem? Should I write up a bug report for this?