-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AST parser error - namespace alias '::TimerBase' #526
Comments
Think the parser don't know something from namespace alias (at least at the usage). Error should also occur with 'class MyTimer : public ::TimerBase' alone? Can you verify this please? |
I fixed the first problem but this is not a complete fix for this issue. The 'class MyTimer : public ::TimerBase' still creates a parser failure.
|
This works 😇
|
SonarOpenCommunity#526 see http://en.cppreference.com/w/cpp/language/qualified_lookup "If there is nothing on the left hand side of the ::, the lookup considers only declarations made in the global namespace scope (or introduced into the global namespace by a using declaration). This makes it possible to refer to such names even if they were hidden by a local declaration"
@Bertk Should we close this or keep it open? |
We can close this issue - solution 08d5d6c is merged. |
Parser fails if a namespace alias (global namespace) is used (works with VC 12.0/14.0).
The text was updated successfully, but these errors were encountered: