This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libstdc++ test case ext/headers.cc failed on arm-none-eabi


You'll have more luck asking the libstdc++ list so I've redirected this there.


On 7 August 2013 11:22, Bin.Cheng wrote:
> Hi,
> I spotted case ext/headers.cc failed on arm-none-eabi with below information:
>
> In file included from
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr.h:148:0,
>                  from
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/ext/atomicity.h:33,
>                  from
> /home/build/work/src/gcc/libstdc++-v3/testsuite/ext/headers.cc:28:
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr-default.h:37:30:
> warning: non-static data member initializers only available with
> -std=c++11 or -std=gnu++11 [enabled by default]
>  #define __GTHREAD_MUTEX_INIT 0
>                               ^
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr-default.h:37:30:
> warning: non-static data member initializers only available with
> -std=c++11 or -std=gnu++11 [enabled by default]
>  #define __GTHREAD_MUTEX_INIT 0
>                               ^
> output is:
> In file included from
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr.h:148:0,
>                  from
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/ext/atomicity.h:33,
>                  from
> /home/build/work/src/gcc/libstdc++-v3/testsuite/ext/headers.cc:28:
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr-default.h:37:30:
> warning: non-static data member initializers only available with
> -std=c++11 or -std=gnu++11 [enabled by default]
>  #define __GTHREAD_MUTEX_INIT 0
>                               ^
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr-default.h:37:30:
> warning: non-static data member initializers only available with
> -std=c++11 or -std=gnu++11 [enabled by default]
>  #define __GTHREAD_MUTEX_INIT 0
>                               ^
>
> FAIL: ext/headers.cc (test for excess errors)
> Excess errors:
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr-default.h:37:30:
> warning: non-static data member initializers only available with
> -std=c++11 or -std=gnu++11 [enabled by default]
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr-default.h:37:30:
> warning: non-static data member initializers only available with
> -std=c++11 or -std=gnu++11 [enabled by default]
>
> The cases failed both on trunk and 4.8, but ok for 4.7.
>
> Any ideas? Thanks.

There's not enough context to see what happened, the diagnostic is
crap, only showing the macro not where it's used.  The macro is not
used as a non-static data member initializers except in C++11 mode, so
I don't know how that could happen.


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