Hi! In r16-8116 Marek has fixed not just whitespace around std::meta::info in diagnostics, but also std::nullptr_t.
This patch adds a testcase for that, such that the part of the change related to NULLPTR_TYPE and this test can be backported. Committed to trunk as obvious, furthermore backported part of Marek's change and this patch to 15 and 14 branches. 2026-03-17 Jakub Jelinek <[email protected]> PR c++/124489 * g++.dg/cpp0x/pr124489.C: New test. --- gcc/testsuite/g++.dg/cpp0x/pr124489.C.jj 2026-03-17 10:22:14.260362091 +0100 +++ gcc/testsuite/g++.dg/cpp0x/pr124489.C 2026-03-17 10:24:42.278837193 +0100 @@ -0,0 +1,9 @@ +// PR c++/124489 +// { dg-do compile { target c++11 } } + +void +g () +{ + constexpr decltype(nullptr) dm = nullptr; // { dg-message ".constexpr std::nullptr_t dm. previously declared here" } + constexpr decltype(nullptr) dm = nullptr; // { dg-error "redeclaration of .constexpr std::nullptr_t dm." } +} Jakub
