[PATCH] D134928: [Sema] Don't treat a non-null template argument as if it were null.
Shafik Yaghmour via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 29 18:28:59 PDT 2022
shafik added inline comments.
================
Comment at: clang/test/CXX/temp/temp.arg/temp.arg.nontype/p1-11.cpp:31
IP<&tl> ip7; // expected-error{{non-type template argument of type 'int *' is not a constant expression}}
+IP<(int*)1> ip8; // expected-error {{non-type template argument does not refer to any declaration}}
----------------
It looks like in C++17 mode we catch this case: https://godbolt.org/z/s43oE5qWE
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134928/new/
https://reviews.llvm.org/D134928
More information about the cfe-commits
mailing list