[Bug c++/124604] [C++20] cp_preserve_using_decl = true causes parse errors in libstdc++ <bits/iterator_concepts.h>

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Mar 22 19:31:32 GMT 2026


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Why do you think this is a bug. You can't be setting random variables and
thinking this should work.

/* Nonzero if we are parsing a reflect-expression and shouldn't strip
   using-declarations.  */
bool cp_preserve_using_decl;


More information about the Gcc-bugs mailing list