Skip to content

Commit 394a62e

Browse files
committed
[test-suite][prolangs] fix ambiguous reference to stack
Since llvm/llvm-project@7b46225 libc++ headers will now include std::stack in more places, meaning the local stack() functions plus overbroad `using namespace std;` in this program cause ambiguous references. Fix this by narrowing the using directive to only what is needed.
1 parent 9a7a49f commit 394a62e

File tree

1 file changed

+1
-1
lines changed
  • MultiSource/Benchmarks/Prolangs-C++/shapes

1 file changed

+1
-1
lines changed

MultiSource/Benchmarks/Prolangs-C++/shapes/bjarne.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
in Bjarne Stroustrup's book "The C++ Programming Language" 2nd Edition. */
33
#include <iostream>
44
#include "bjarne.h"
5-
using namespace std;
5+
using std::cout;
66

77
enum color {black='*', white=' '};
88

0 commit comments

Comments
 (0)