------- Comment #2 from trentgamblin at hotmail dot com  2006-04-22 03:23 
-------
Subject: RE:  Including C++ header declares C functions

>Two things, first this is a dup of PR 6257 (which is one of the most report
>bugs and that means is on http://gcc.gnu.org/bugzilla/duplicates.cgi, 
>please
>next time read that list).
>
>Second, this might become valid to do, see:
>http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#456
>
>Which is an open defect agains the standard.

I don't think this is the same bug. I can see how including <cstdio> would 
declare printf but why in the world would including <iostream> or <vector> 
declare printf, strcpy, etc. Again, this is the code:

#include <vector>
int main(void)
{
  printf("test\n");
}

I didn't include any C headers at all. If I comment out the include 
statement GCC complains as it should. Please respond if you still think this 
is the same issue as bug 6257. Thanks for your time.

_________________________________________________________________
Powerful Parental Controls Let your child discover the best the Internet has 
to offer.  
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
 
  Start enjoying all the benefits of MSNĀ® Premium right now and get the 
first two months FREE*.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27255

Reply via email to