]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: unifying REAL_CSTs [PR110809]
authorPatrick Palka <ppalka@redhat.com>
Wed, 26 Jul 2023 20:52:13 +0000 (16:52 -0400)
committerPatrick Palka <ppalka@redhat.com>
Wed, 26 Jul 2023 20:52:13 +0000 (16:52 -0400)
commit744e1f35266dbd6b6fb95c7e8422562815f8b56f
treebdafca3d3d7f5455359e7058a78c669bfa794049
parent27ba73644f53c118e3f9b3fe9cd792210696ec55
c++: unifying REAL_CSTs [PR110809]

This teaches unify how to compare two REAL_CSTs.

PR c++/110809

gcc/cp/ChangeLog:

* pt.cc (unify) <case INTEGER_CST>: Generalize to handle
REAL_CST as well.

gcc/testsuite/ChangeLog:

* g++.dg/cpp2a/nontype-float3.C: New test.
gcc/cp/pt.cc
gcc/testsuite/g++.dg/cpp2a/nontype-float3.C [new file with mode: 0644]