[Bug c++/124489] [reflection] Missing space when printing "constexpr std::meta::info"

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 16 22:08:03 GMT 2026


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Shouldn't we add also a testcase for decltype (nullptr) and backport that
testcase + the NULLPTR_TYPE part of the fix to 13/14/15 branches?
void
g ()
{
  constexpr decltype (nullptr) dm = nullptr;
  constexpr decltype (nullptr) dm = nullptr;
}
/usr/src/gcc-13/obj/gcc/cc1plus -quiet a.C
a.C: In function ‘void g()’:
a.C:5:32: error: redeclaration of ‘constexprstd::nullptr_t dm’
    5 |   constexpr decltype (nullptr) dm = nullptr;
      |                                ^~
a.C:4:32: note: ‘constexprstd::nullptr_t dm’ previously declared here
    4 |   constexpr decltype (nullptr) dm = nullptr;
      |                                ^~


More information about the Gcc-bugs mailing list