gcc-4.7-20111022 fails to build on PA-RISC

Daniel Krügler daniel.kruegler@googlemail.com
Sun Oct 30 20:54:00 GMT 2011


2011/10/30 Jonathan Wakely <jwakely.gcc@gmail.com>:
> And this works with that code:
>
> struct mutex {
>  pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
>  mutex() = default;
> };

The error occurs, if you declare a variable of mutex, like

mutex m2;

But if you change that to

mutex m2{};

it works ;-)

- Daniel



More information about the Libstdc++ mailing list