From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vs1-xe2a.google.com (mail-vs1-xe2a.google.com [IPv6:2607:f8b0:4864:20::e2a]) by sourceware.org (Postfix) with ESMTPS id CF78D386101C for ; Mon, 28 Dec 2020 19:51:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CF78D386101C Received: by mail-vs1-xe2a.google.com with SMTP id e20so6030847vsr.12 for ; Mon, 28 Dec 2020 11:51:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=m48WEh5WN5yCf3p727IsZREt4U8RyF+SkTUNkx6r1XY=; b=LkIdAhybT/Q0mJOjR2AkRwU1GNEQvOwObvQztJUz+/p9rzEDdF9ksR7c9b56NTa7ez G/a+eoT8VLLNCh43npPcnY44etsQUWbxCX+C2/x2Jt7OM1RhkcqZzqTw6NKSFpvZQv56 u3F+TL3XAwjjDNTXJJLfvXv1rG9LoOW9wnGyMANseWFzfLvRU991qU7PtmVYQ9wXYrLB DEeiADUUFfAF0Di70mOBLQP5qgHwwH4tkwKfc+UwuztKGlX2z9XOzruVqG1Z4jl+wD4C GV3KsUyDyNn93UmOCSAUa9jtCQ2/xpkIuT6+CwnX+33m6hKIK3qWpt1xqwF0rxR1TdQI NBJA== X-Gm-Message-State: AOAM530RIlJZM9ly6ncnSaYZapncibxLped83M+notL9UKCefWYoxC0H PWQxlClPAe0RxQaWqv2ajSe25zNP8vCrS+59+EfyX2sWKBwnXQ== X-Google-Smtp-Source: ABdhPJx9aTxwYZgHqcCXN0b71nuDCwvkbm0c0gIYDcloT7Pw2kBd8Ah+J21D58ux9zZ5PFoDWwbh8ScoEkXARxqaWi4= X-Received: by 2002:a67:edc9:: with SMTP id e9mr11156058vsp.20.1609185071995; Mon, 28 Dec 2020 11:51:11 -0800 (PST) MIME-Version: 1.0 From: Josh Marshall Date: Mon, 28 Dec 2020 14:51:01 -0500 Message-ID: Subject: Should reinterpret_cast be constexpr? To: libstdc++@gcc.gnu.org X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Dec 2020 19:51:14 -0000 Hello all, >From the test error `libstdc++-v3/include/bits/stl_vector.h:1837: error: 'reinterpret_cast' is not a constant expression` and the documentation at https://en.cppreference.com/w/cpp/language/reinterpret_cast , is `reinterpret_cast()` not constexpr in error?