re PR c++/65370 (r213519 causes: error: redeclaration of 'template... may not have...
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 10 Mar 2015 22:20:41 +0000 (22:20 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 10 Mar 2015 22:20:41 +0000 (22:20 +0000)
commit58cbf8d4dcaa6d0d81cd94bc3e8001b419265dd0
treecf5ced19b7d49227299751b10fdc0edf1b11b546
parent2d977ff983f86b3f7b7c9f1cb5a479af75cd589e
re PR c++/65370 (r213519  causes: error: redeclaration of 'template... may not have default arguments [-fpermissive])

/cp
2015-03-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/65370
* decl.c (duplicate_decls): Call check_redeclaration_no_default_args
only if the location of newdecl doesn't match the location of olddecl.

/testsuite
2015-03-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/65370
* g++.dg/other/default11.C: New.
* g++.dg/other/default12.C: Likewise.

From-SVN: r221337
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/default11.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/default12.C [new file with mode: 0644]