From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D3A963857C40; Wed, 12 Aug 2020 15:27:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3A963857C40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597246030; bh=IB8heHQuzYLz26bAQf1Qmo4Esl8EOcSb9Ii3EF3NbHQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qyYkUmnT/eeSI9bYmNGyRDeIWe3+gWyElxMtaaF1MoEYvv2hFsge4ZuZM4lYbqdKl maP/MTIwmDpbW0Oz1Qelj7X9BPCscgA8iTY5WMUNIlx/AKa6W4Dhu0pVFnvIcQ6gh/ uSnCi2EQNff5KZp4d1xY7R9SHyfbpuWymaas7aqI= From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/96570] Warnings desired for time_t to int coversions Date: Wed, 12 Aug 2020 15:27:10 +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: 10.1.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.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: cc 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: Wed, 12 Aug 2020 15:27:10 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96570 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egallager at gcc dot gnu.o= rg --- Comment #6 from Eric Gallager --- (In reply to M Welinder from comment #2) > > Why? If somebody wants to be explicitly stupid, that's their prerogativ= e. >=20 > I agree with the second sentence. >=20 > However, casts are not a clear indication that somebody wants to be > explicitly stupid, at least not in C++. If you were looking for such an > indication, my int(int64_t(...)) suggestion is probably closer. >=20 > Casts occur also in (e.g.) overload resolution and entirely too often in > template soup. And in macros too, I guess. >=20 This reminds me of bug 69818=