fork download
  1. #include <iostream>
  2. class Bar {};
  3.  
  4. namespace blah {
  5. class Foo {
  6. public:
  7. using Bar = ::Bar;
  8. };
  9. void test(Foo::Bar) {
  10. std::cout << "blah" << std::endl;
  11. }
  12. }
  13.  
  14. int main(void) {
  15. test(blah::Foo::Bar{});
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:15:2: error: use of undeclared identifier 'test'; did you mean 'blah::test'?
        test(blah::Foo::Bar{});
        ^~~~
        blah::test
prog.cpp:9:6: note: 'blah::test' declared here
void test(Foo::Bar) {
     ^
1 error generated.
stdout
Standard output is empty