::gets has not been declared

Joseph S. Myers joseph@codesourcery.com
Thu Jan 5 15:40:00 GMT 2012


On Thu, 5 Jan 2012, Tom de Vries wrote:

> My hunch is that this recent glibc change causes/triggers the error:
> ...
> 	[BZ #13528]
> 	* libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
> ...
> 
> I see this both on ARM and MIPS.
> 
> Should I file this as a problem in gcc or glibc?

It's a bug in libstdc++ that it doesn't allow for headers that have 
removed gets in accordance with C11.  If the final C++11 still requires 
gets in <cstdio>, despite it being removed in C11, that's probably also a 
bug in C++11.  (At least the most recent draft I have to hand still has 
gets in <cstdio>.)

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc mailing list