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;
      |                                ^~

Reply via email to