From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E49153893644; Mon, 4 May 2020 17:37:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E49153893644 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588613845; bh=MRHBh/HZwfSsxpCWRN0lZJITR3LGwavCSaskNCilq9Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PPToS5KN46Jn6xiFfrmv//hMcQ+gdl8y1vuVlC9aUZgpxsYf7hsB5MoMEsWVE48Ze TQ58J6HCq4q1N0vRjp+R4npz1jfhAG8d0Gj0trGAm3hGpeJIIV0MBpZUzMSXon2AM/ COCrZ1EqT7dx0UZYK3lMtLTOxbJeCNThKekDmqHs= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94929] [8 Regression] GCC 8 chokes on std::max in alignas Date: Mon, 04 May 2020 17:37:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.4.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 May 2020 17:37:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94929 --- Comment #6 from Marek Polacek --- (In reply to David Seifert from comment #5) > (In reply to Marek Polacek from comment #3) > > I'm going to backport the fix to 8 if it passes the usual testing. >=20 > Hi Marek, > could you also test the inlined code. Defining some const and then using = it > alignas worked previously, the problem comes from doing all of it in > alignas(). Both the original testcase in this PR and the test in Comment 2 now compile even with GCC 8.=