re PR c++/3671 (cannot deduce enum template parameter with multiple overloads)
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Tue, 6 Jul 2004 10:51:08 +0000 (10:51 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Tue, 6 Jul 2004 10:51:08 +0000 (10:51 +0000)
commitfddabb2c2261f782c6545104c36958b0eef1e3b6
tree6857372bf97f5126f821d5886fbb5d1a6937ccf1
parent2da8f02333e9f0eb20457f4cb4ebbe74a02f5c83
re PR c++/3671 (cannot deduce enum template parameter with multiple overloads)

PR c++/3671
* pt.c (convert_nontype_argument): Disallow conversions between
different enumeration types.

PR c++/3671
* g++.dg/template/spec14.C: New test.

From-SVN: r84150
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/spec14.C [new file with mode: 0644]