re PR c++/79361 (ICE redefining a template function as defaulted or deleted)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 23 Feb 2017 23:20:58 +0000 (23:20 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 23 Feb 2017 23:20:58 +0000 (23:20 +0000)
commite3beb191c5b574b7a735827ce96f3b4583c6bf7d
tree514f3ab697e12881e557bbc8d2887a322aba9384
parent195610aaa05ba8ee8f3ec4bd5df3877610a5daf3
re PR c++/79361 (ICE redefining a template function as defaulted or deleted)

/cp
2017-02-23  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/79361
* pt.c (register_specialization): Check duplicate_decls return value
for error_mark_node and pass it back.

/testsuite
2017-02-23  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/79361
* g++.dg/cpp0x/pr79361-1.C: New.
* g++.dg/cpp0x/pr79361-2.C: Likewise.

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