C
Christopher Benson-Manica
Is a conforming C++ implementation required to issue a diagnostic when
invoked on the following code?
#include <cstdlib>
#include <iostream>
#include <string>
int main()
{
printf( "Hello, world!\n" ); // oops, <cstdio> missing
return( EXIT_SUCCESS );
}
g++ -Wall -ansi -pedantic does not; I'm wondering if I have cause for
a bug report (assuming one has not yet been submitted).
invoked on the following code?
#include <cstdlib>
#include <iostream>
#include <string>
int main()
{
printf( "Hello, world!\n" ); // oops, <cstdio> missing
return( EXIT_SUCCESS );
}
g++ -Wall -ansi -pedantic does not; I'm wondering if I have cause for
a bug report (assuming one has not yet been submitted).