]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/37766 ([C++0x] ICE with function's default reference template parameter)
authorJason Merrill <jason@redhat.com>
Mon, 12 Oct 2009 21:04:27 +0000 (17:04 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 12 Oct 2009 21:04:27 +0000 (17:04 -0400)
commit23f392e0191bc5d193c1cdbacc92fa4814078eb1
tree110b3db4a3c8cbb454577a847db0985c28ee48ab
parent610bf3ebef5b6e06e554736ccadd9b76371be14a
re PR c++/37766 ([C++0x] ICE with function's default reference template parameter)

PR c++/37766
* pt.c (type_unification_real): Call convert_template_argument
for function default template arguments.
(check_default_tmpl_args): Suggest -std=c++0x when function default
template args seen in C++98 mode.

From-SVN: r152685
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/fntmpdefarg1.C [new file with mode: 0644]