================ @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s + +void f(void) { + int_val2 = 0; // expected-error{{use of undeclared identifier}} + sin(0); // expected-error{{use of undeclared identifier 'sin'}} \ + // expected-note{{perhaps `#include <cmath>` is needed?}} + + std::cout << "Hello world\n"; // expected-error{{use of undeclared identifier 'std'}} \ + // expected-note{{perhaps `#include <iostream>` is needed?}} ---------------- Endilll wrote:
This note sounds like `<iostream>` provides `std`, which doesn't feel right. https://github.com/llvm/llvm-project/pull/140247 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits