From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DCD3E3857735; Fri, 5 May 2023 22:44:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DCD3E3857735 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683326690; bh=YboJVwgRsWmWli0L25hQKfbAl1h1zTRBh/jaUO3fLlE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZZw1vpxGWU6NRVI3pO+FNxGgQSFJvPkGvA23Z9afX5MV+lBxhu+rdHry/fTEshfyi 7Ihm1OithOdh82SURTLJ2NHTqYsLvOzPjn7I6HGXDMqUpDH/XqZWqckSZ1nfqIzwzE hXljCTf8zIZlMOn0QkedYXesrIuB3BKIXLJcgAuU= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109753] [13/14 Regression] pragma GCC target stops std::vector from compiling Date: Fri, 05 May 2023 22:44:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.1.1 X-Bugzilla-Keywords: needs-bisection, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109753 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #3 from Marek Polacek --- (In reply to Andrew Pinski from comment #2) > Reduced: > ``` > #pragma GCC target("avx2") > struct aa { > __attribute__((__always_inline__)) aa() noexcept {} > }; > aa _M_impl; > ``` This started to give an error with commit bef8491a658de9e8920acaeff6cb76ef4e946e2c Author: Sriraman Tallam Date: Tue Jun 18 22:45:03 2013 +0000 Emit errors when always_inline functions cannot be inlined in -O0 mode. * tree-inline.c (expand_call_inline): Allow the error to be fla= gged in early inline pass. * ipa-inline.c (inline_always_inline_functions): Pretend always_inline functions are inlined during failures to flag an error. * gcc.target/i386/inline_error.c: New test. * gcc.c-torture/compile/pr44043.c: Fix test to expect an error. * gcc.c-torture/compile/pr43791.c: Fix test to expect an error. From-SVN: r200179 I think the original problem must have been triggered by some libstdc++ cha= nge.=