]> gcc.gnu.org Git - gcc.git/commit
cp: Allow INTCAP_TYPEs as non-type template parameters
authorAlex Coplan <alex.coplan@arm.com>
Mon, 26 Sep 2022 10:09:24 +0000 (11:09 +0100)
committerAlex Coplan <alex.coplan@arm.com>
Mon, 26 Sep 2022 10:09:24 +0000 (11:09 +0100)
commitee3f16b654780d3333e1b94bb373dc134ab782c3
tree3c169b70ec950e1b11aebc55e2c1669490a30ff0
parent46c0f36ba7dc0c1d8d992f6ccfe24b7f863b5688
cp: Allow INTCAP_TYPEs as non-type template parameters

It looks like we missed updating pt.c:invalid_nontype_parm_type_p to
allow INTCAP_TYPEs as non-type template parameters, this fixes that.

gcc/cp/ChangeLog:

* pt.c (invalid_nontype_parm_type_p): Also allow INTCAP_TYPEs.

gcc/testsuite/ChangeLog:

* g++.target/aarch64/morello/intcap-nontype-template.C: New test.
gcc/cp/pt.c
gcc/testsuite/g++.target/aarch64/morello/intcap-nontype-template.C [new file with mode: 0644]
This page took 0.064337 seconds and 6 git commands to generate.