]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/15339 ([DR217] Adding default arguments to function templates in redeclarat...
authorPaolo Carlini <paolo@gcc.gnu.org>
Sat, 2 Aug 2014 19:41:32 +0000 (19:41 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 2 Aug 2014 19:41:32 +0000 (19:41 +0000)
commite83a4a2e4040d52b9c0ef052b8f49b5afbed60ac
tree6de5ef6aa4224298ce3181785830dadf37745af8
parent91bc34a94d157c64f82477e8cd44d55494e7b1b7
re PR c++/15339 ([DR217] Adding default arguments to function templates in redeclarations should be forbidden)

/cp
2014-08-02  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/15339
* decl.c (check_redeclaration_no_default_args): New.
(duplicate_decls): Use it, handle default arguments
in redeclarations of function templates.

/testsuite
2014-08-02  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/15339
* g++.dg/other/default9.C: New.
* g++.dg/other/default10.C: Likewise.
* g++.dg/other/default3.C: Remove xfail.

From-SVN: r213519
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/default10.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/default3.C
gcc/testsuite/g++.dg/other/default9.C [new file with mode: 0644]