-
-
Notifications
You must be signed in to change notification settings - Fork 262
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
with adding this code:
#include <iostream>
using namespace std;
int a = 3;
int main() {
int a = 3;
{
int a = 4;
{
int a = 5;
cout << a + (::a);
}
}
}
i got this:
#include <iostream>
using namespace std;
int a = 3;
int main()
{
int a = 3;
{
int a = 4;
{
int a = 5;
std::cout.operator<<(a + (a)); // still should be ::a
};
};
return 0;
}
so, there is a bug with getting a global variable.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working