re PR c++/70621 (ICE on invalid code at -O1 and above on x86_64-linux-gnu in record_r...
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 12 Sep 2017 19:45:37 +0000 (19:45 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 12 Sep 2017 19:45:37 +0000 (19:45 +0000)
commit741bbaabaffa7db912a775077897ad72611471f3
treeddb77920f0aab7399253ed4730486aa0436fa910
parent18a4e7e305c1e12392ac35073b89f2ca0e7f8eda
re PR c++/70621 (ICE on invalid code at -O1 and above on x86_64-linux-gnu in record_reference, at cgraphbuild.c:64)

/cp
2017-09-12  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/70621
* decl.c (start_decl): Early return error_mark_node if duplicate_decls
returns it; avoid misleading error message.

/testsuite
2017-09-12  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/70621
* g++.dg/torture/pr70621.C: New.

From-SVN: r252040
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr70621.C [new file with mode: 0644]