[Bug c++/69078] [C++14] function local static not initialized when only used in a generic/variadic lambda
clyon at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Oct 16 20:29:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69078
Christophe Lyon <clyon at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clyon at gcc dot gnu.org
--- Comment #5 from Christophe Lyon <clyon at gcc dot gnu.org> ---
Hi,
I couldn't find the email where this patch was posted, so I reply here.
I've noticed that the new testcase:
> PR c++/69078
> * g++.dg/cpp1y/lambda-generic-69078-1.C: New.
fails on arm-none-eabi
--with-mode default
--with-cpu default
--with-fpu default
(that is, when the default arm target is an old, less-capable cpu).
The test fails to link for lack of __sync_synchronize.
In other occasions, a fix for this kind of problem was to add
// { dg-require-thread-fence "" }
but this doesn't work here, as this dg proc is only defined in the libstdc++
testsuite.
How to skip it here?
More information about the Gcc-bugs
mailing list