Hi Jakub,
>> I wonder if the warning is appropriate for system headers since users
>> can do nothing about those.
>
> From what I've tested the warning works properly with system headers,
> both when a system header contains e.g. inline function with some octal
> literals in it, or when defining a macro that is later on used in the
> main source file.
> But the above 2 tests are compiled with -Wsystem-headers.
> Maybe we should just add -Wno-deprecated-octal-literal to their
> dg-options?
seems reasonable. Apart from those two, there are only very few that
use -Wsystem-headers and actually include some.
g++.dg/cpp0x/noexcept88.C:#include <cstdlib>
g++.dg/cpp0x/noexcept88.C:#include <new>
g++.dg/warn/Wsystem-headers1a.C:#include <stdlib.h>
gcc.dg/c23-stddef-2.c:#include <stddef.h>
gcc.dg/c23-stddef-2.c:#include <stddef.h>
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University