re PR c++/31671 (Non-type template of type const ref accepted as a non-const ref)
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 11 Oct 2013 14:18:42 +0000 (14:18 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 11 Oct 2013 14:18:42 +0000 (14:18 +0000)
commitddc757fe19adf1b99121fd6c42f6149b8d8cac2e
treef541cb0d4c51c7f32de84b0a74299492539904ec
parent3c87b77b1ea5bc5920e846d9c666bf4c1780148b
re PR c++/31671 (Non-type template of type const ref accepted as a non-const ref)

/cp
2013-10-11  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/31671
* pt.c (convert_nontype_argument): Set expr_type to
TREE_TYPE (probe_type).

/testsuite
2013-10-11  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/31671
* g++.dg/template/nontype26.C: New.

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