// { dg-do compile { target c++20 } } template void foo(const char (*s)[([]{}, N)]) {} template void spam(decltype([]{}) (*s)[sizeof(T)]) {} int main() { foo<1>(nullptr); spam(nullptr); } // { dg-final { scan-assembler-not "weak.*_Z" } }