From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A75283851C0A; Sun, 3 May 2020 08:49:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A75283851C0A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588495787; bh=eT0hz73GE/FlfLvCW8OhB/G31eT+rNirRNyevkN+DF8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UnVJGxXC8zhTz3nuWwFZ5j0dT/UBABh03Asv9r6tevBp8tnyJ2d45dAmVyyQGhDWZ /qviKIux7aMMHzMG/mjnKTME/cJbTYERyOqLfk3qYbpBKyYff1j9/6U0lpzVfBvQtP tdaqcbLrXiqmwqJxrJywx+ch2du75+OTxQai1FZo= From: "redi 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: Sun, 03 May 2020 08:49:47 +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: redi 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_fail cc everconfirmed keywords bug_status cf_known_to_work cf_reconfirmed_on resolution 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: Sun, 03 May 2020 08:49:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94929 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |6.4.0, 7.5.0, 8.4.0 CC| |polacek at redhat dot com Ever confirmed|0 |1 Keywords| |rejects-valid Status|RESOLVED |NEW Known to work| |10.0, 11.0, 5.5.0, 9.2.0 Last reconfirmed| |2020-05-03 Resolution|DUPLICATE |--- --- Comment #2 from Jonathan Wakely --- Hmm, although this was fixed for gcc 9.2 by the patch for PR 90736 it seems= to be a different root cause. This compiled with GCC 5 but not 6, 7 or 8: template constexpr const T& max(const T& a, const T& b) { return a < b ? b : a; } struct One {}; struct Two {}; struct Foo { alignas(max(alignof(One), alignof(Two))) char value; }; This regressed with r230365, "Merge C++ delayed folding branch." Marek, looks like backporting r272219 would fix this.=