From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2637C3858D34; Wed, 17 Jul 2024 09:15:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2637C3858D34 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1721207724; bh=8EbuG4MFkMW487JD3OXAu6nScujYdzpnhYMzOJzvGx0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Y+uqrtf83QdhNCXFZdxBOoe4AF8sWmiLEl5yAvVhyoanFXeWzzqZb6NPLYRDPAeI0 bOKRImZTtYD4GVTe5sAQixBVD0FMgJ5oAP4bc8XVY37ThClh3fICPTQ+HKxnky6sBS E+tK1kXkLEi4pvsfssdGKHexPpJXlyP09LeUZEEo= From: "redi 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: Wed, 17 Jul 2024 09:15:23 +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: redi 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: 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 --- Comment #4 from Jonathan Wakely --- > The problem seems to be that, despite passing "-std=3Dc++17", it doesn't = use c++17 > header files for the Optional identifier. Why should it? The name "Optional" is not part of any C++ standard.=