From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5B1C73858D34; Sat, 2 May 2020 22:34:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5B1C73858D34 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588458894; bh=BGZi7kMJZfndgoydcn451Z8KnkALkJPwCzQjZM++E5Y=; h=From:To:Subject:Date:From; b=Dh41tWDEMlczNLF1SMU9ErNphwBrlqzvYsibrSc2MtkuSzHko1Bg25B/7Qf32q0Ul EivcAMyKK91EpDNPZCtnAVVLqowVX2q0oDTCh/fe2EPmWqznWEWkiUhS7tJKtaB9rE H+X7nVSm2gmIbcu/nCuVyC91BdPOkaTan8q8aL1k= From: "soap at gentoo dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94929] New: GCC 8 chokes on std::max in alignas Date: Sat, 02 May 2020 22:34:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: soap at gentoo dot org X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Sat, 02 May 2020 22:34:54 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94929 Bug ID: 94929 Summary: GCC 8 chokes on std::max in alignas Product: gcc Version: 8.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: soap at gentoo dot org Target Milestone: --- The following snippet #include struct One {}; struct Two {}; struct Foo { alignas(std::max(alignof(One), alignof(Two))) char value; }; compiles fine in GCC 9.3, but in GCC 8.4 fails with test.cpp:5:65: error: requested alignment is not an integer constant struct Foo { alignas(std::max(alignof(One), alignof(Two))) char value; }; ^~~~~=