re PR c++/84724 (internal compiler error: in single_succ_edge, at basic-block.h:339...
authorJakub Jelinek <jakub@redhat.com>
Fri, 9 Mar 2018 18:01:22 +0000 (19:01 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 9 Mar 2018 18:01:22 +0000 (19:01 +0100)
commit060ad85254de126c82bdbfbf6af603701ccf503c
treebba1401709b780137f4b983f7472833883788a05
parente0cd6bc00966de0a3a77b642f9507d9c83b398f1
re PR c++/84724 (internal compiler error: in single_succ_edge, at basic-block.h:339 with a declaration of __builtin_trap)

PR c++/84724
* decl.c (duplicate_decls): Don't override __* prefixed builtins
except for __[^b]*_chk, instead issue permerror and for -fpermissive
also a note and return olddecl.

* g++.dg/ext/pr84724.C: New test.

From-SVN: r258391
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/pr84724-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/pr84724-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/pr84724-3.C [new file with mode: 0644]