This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Something's wrong with recent g++ include files


On Dec  3, 2000, Benjamin Kosnik <bkoz@redhat.com> wrote:

> These parts of the library are deprecated: using them should be
> too. To be fair, we're allowing the deprecated parts with the explicit
> use and acknowledgment of -I./backward.

Removing the headers from the standard search path isn't the only way
to deprecate something.  IMO, when something is deprecated, it should
trigger a warning, not simply fail to compile.

How about finding the headers by default, but having them emit a
#warning indicating the header is deprecated and shouldn't be relied
upon?  Then, we can move them out of the default search path in future
versions without getting blamed for breaking thousands of programs
without warning.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]