https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89403
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Aug 30 12:10:10 2019 New Revision: 275119 URL: https://gcc.gnu.org/viewcvs?rev=275119&root=gcc&view=rev Log: Backported from mainline 2019-02-20 Jakub Jelinek <ja...@redhat.com> 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. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp0x/pr89403.C Modified: branches/gcc-7-branch/gcc/cp/ChangeLog branches/gcc-7-branch/gcc/cp/decl2.c branches/gcc-7-branch/gcc/cp/semantics.c branches/gcc-7-branch/gcc/testsuite/ChangeLog