[Bug c++/84269] More suggestions for missing #include

dmalcolm at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 21 15:10:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84269

--- Comment #6 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Another one, affecting C++ only:

void f() {
    printf("test");
}

<source>: In function 'void f()':
<source>:2:5: error: 'printf' was not declared in this scope
     printf("test");
     ^~~~~~
<source>:2:5: note: suggested alternative: 'int'
     printf("test");
     ^~~~~~
     int


More information about the Gcc-bugs mailing list