From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E96543858C56; Tue, 16 Jul 2024 21:59:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E96543858C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1721167178; bh=grTHYXLDaTZVeXmb7JeZLVyaj3XBi9taM3HMWTmTbJ0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XKV5e0bvFgWAMfiRy1CdgihT8m/x6+MC62IRDbcAHk+9rOcJK8fG+LdliPBUsY2oj hOmcPgOK3nkbbcqbKSNVQuaks4vSjJfn6seBuEoJoQpdDGGTj/B7sBAtIdJQ8UI04x lEGUGP2gLQODPpIZjF2RJ4rt2c+NhomXlKFmdgbg= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/115960] gcc throws an error when I use Optional in c++17. Date: Tue, 16 Jul 2024 21:59:38 +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: 15.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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: resolution bug_status 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=3D115960 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski --- llvm/include/llvm/ADT/Optional.h is not included so llvm::Optional is not declared anywhere. GCC's error message is correct.=