aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/runtime/lfstack_32bit.go
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2025-07-30 12:00:06 -0400
committerJason Merrill <jason@redhat.com>2025-07-30 12:00:06 -0400
commitd7cd6b0df54a29e23adbf98e47965c217f6e0107 (patch)
tree21107c91dc7571c93c11b5e57cca08e6ae47d23a /libgo/go/runtime/lfstack_32bit.go
parent0340177d54d08b6375391ba164a878e6a596275e (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
c++: improve non-constant template arg diagnosticHEADtrunkmaster
A conversation today pointed out that the current diagnostic for this case doesn't mention the constant evaluation failure, it just says e.g. "'p' is not a valid template argument for 'int*' because it is not the address of a variable" This patch improves the diagnostic in C++17 and above (post-N4268) to diagnose failed constant-evaluation. gcc/cp/ChangeLog: * pt.cc (convert_nontype_argument_function): Check cxx_constant_value on failure. (invalid_tparm_referent_p): Likewise. gcc/testsuite/ChangeLog: * g++.dg/tc1/dr49.C: Adjust diagnostic. * g++.dg/template/func2.C: Likewise. * g++.dg/cpp1z/nontype8.C: New test.
Diffstat (limited to 'libgo/go/runtime/lfstack_32bit.go')
0 files changed, 0 insertions, 0 deletions