diff options
author | Jason Merrill <jason@redhat.com> | 2024-02-07 15:03:01 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2024-02-07 19:21:57 -0500 |
commit | 4797f0100b95802b2c043d64364ce9b77469a182 (patch) | |
tree | 383374e9694ea1683aa834747cf7264b788288e5 /gcc/fortran | |
parent | 0535c203c5b5ce9c7ae29fc8ba6288986fc3b34e (diff) | |
download | gcc-4797f0100b95802b2c043d64364ce9b77469a182.zip gcc-4797f0100b95802b2c043d64364ce9b77469a182.tar.gz gcc-4797f0100b95802b2c043d64364ce9b77469a182.tar.bz2 |
c++: class nttp ICE
The new testcase from P2308 crashed trying to expand 'this' without an
object to refer to, because we stripped the TARGET_EXPR in
create_template_parm_object. So let's leave it on for giving an error.
gcc/cp/ChangeLog:
* pt.cc (create_template_parm_object): Pass TARGET_EXPR to
cxx_constant_value.
gcc/testsuite/ChangeLog:
* g++.dg/cpp2a/nontype-class64.C: New test.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions