Parser problem in C++

已回答

Hi,

The following code gives a problem with the parser that comes with CLion 2017.2.3. The

il::Hello<il::int_t> a{};

line says that it cannot resolve Hello nor int_t. I believe that this is valid C++. Could you please confirm that this is a bug in your parser?


namespace il {
typedef int int_t;
}

namespace il {
template <typename T>
class Hello {
private:
T x_;
};
}

namespace il {
enum class Test : unsigned short {
Hello
};
}


int main() {
il::Hello<il::int_t> a{};

return 0;
}
0

Hi! Yes, it's a bug in CLion's parser. We already have the issue in our tracker. Please feel free to comment or upvote.

0

请先登录再写评论。