Including any C++ header puts all C functions in the global namespace. This code compiles and runs without errors or warnings:
#include <iostream>
int main(void)
{
printf("test\n");
}
--
Summary: Including C++ header declares C functions
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: trentgamblin at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27255
