bug in DSAAttrChecker class?

Hi:

In file SemaOpenMP.cpp, there is a class named DSAAttrChecker.

Inside DSAAttrChecker class, there is a method function VisitDeclRefExpr()
which is used to check the data attribute of a variable inside a construct.

This is my testcase:

//global variable
int var;

void test()
{
// orphaned task construct
#pragma omp task

{
var;
}
}

When I call VisitDeclRefExpr() fucniton, it determines that var is firstprivate.
Apparently, var should be shared. Is this a bug?

Sincerely
xiaohui