https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71856

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |5.3.0
   Target Milestone|---                         |6.2
            Summary|_GLIBCXX_DEBUG-mode breaks  |[6/7 Regression]
                   |GNU parallel extension      |_GLIBCXX_DEBUG-mode breaks
                   |                            |GNU parallel extension

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Michael Hamann from comment #4)
> Sorry for not including a test case, I thought from the description and the
> provided links the problem was clear enough but of course I should have
> known better. I've attached a minimal test case.

I'm better at understanding C++ than words sometimes :-)

I've changed <bits/c++config.h> to do:

// Debug Mode implies checking assertions.
#ifdef _GLIBCXX_DEBUG
# define _GLIBCXX_ASSERTIONS 1
#endif

Which solves the missing expression with "#if _GLIBCXX_ASSERTIONS"

I've also changed <parallel/*> to use _GLIBCXX_PARALLEL_ASSERTIONS instead, so
those headers won't unintentionally enable assertions in the rest of the
library.

I'll make the same change on the gcc-6 branch shortly.

Reply via email to