pt.c (convert_template_argument): Add a diagnostic for the [temp.arg]/2 ambiguity...
authorMarek Polacek <polacek@redhat.com>
Mon, 20 May 2019 18:59:05 +0000 (18:59 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 20 May 2019 18:59:05 +0000 (18:59 +0000)
commit8d25372f16eb18581227790389df3115314d07ab
tree5e4dfcf6439a49db1583cbd2e9e35cfdee01406b
parent215826720508c828b6a5eaca7f0a7396d78ab36b
pt.c (convert_template_argument): Add a diagnostic for the [temp.arg]/2 ambiguity case.

* pt.c (convert_template_argument): Add a diagnostic for the
[temp.arg]/2 ambiguity case.

* g++.dg/cpp2a/nontype-class17.C: New test.

From-SVN: r271431
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp2a/nontype-class17.C [new file with mode: 0644]