You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If using SSH remote, specify OS of remote machine:
Bug Summary and Steps to Reproduce
Bug Summary:
When aliasing is used for struct that uses same name as namespace then IntelliSense shows error.
Steps to reproduce:
Paste in code:
namespaceAAA
{
structAAA
{
int integer;
};
intAAAtest(int a)
{
return a + 10;
}
}
namespaceBBB
{
using AAA = AAA::AAA; // shows errorvoidtest(AAA *aa)
{
aa->integer++;
int result = ::AAA::AAAtest(10);
}
}
Error overloaded function "AAA::AAA::AAA" is not a type nameC/C++(757) will be shown on mouse hover over using AAA = AAA::AAA; line.
Expected behavior:
No error should be shown here.
Code compiles using clang version 14.0.6 Android (8490178, based on r450784d) (other compilers not tested).
Hi @mehlian . Thanks for reporting this. Since this also repro's in VS (which shares the same IntelliSense implementation), I opened an issue against VS internally. (ID 2255630)
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
When aliasing is used for struct that uses same name as namespace then IntelliSense shows error.
Steps to reproduce:
overloaded function "AAA::AAA::AAA" is not a type nameC/C++(757)
will be shown on mouse hover overusing AAA = AAA::AAA;
line.Expected behavior:
No error should be shown here.
Code compiles using
clang version 14.0.6 Android (8490178, based on r450784d)
(other compilers not tested).Configuration and Logs
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: