re PR c++/89403 (ICE in maybe_clone_body, at cp/optimize.c:693)
authorJakub Jelinek <jakub@redhat.com>
Thu, 21 Feb 2019 00:09:47 +0000 (01:09 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 21 Feb 2019 00:09:47 +0000 (01:09 +0100)
commite843f1890b6ee39a82a05ff4a7e8a9afa11fe4f5
treeab124504f746fe6ad9b4032d75fccece849ed9b7
parent73ab3eb732462887817e000a23b86b8a24641c07
re PR c++/89403 (ICE in maybe_clone_body, at cp/optimize.c:693)

PR c++/89403
* decl2.c (c_parse_final_cleanups): Move TREE_ASM_WRITTEN setting
for flag_syntax_only from here...
* semantics.c (expand_or_defer_fn_1): ... here.

* g++.dg/cpp0x/pr89403.C: New test.

From-SVN: r269059
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr89403.C [new file with mode: 0644]