From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9B5CD3858D28; Wed, 11 Oct 2023 16:33:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B5CD3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697042002; bh=pyrslNrtco3zew0+NK6SyvVoClWAGeUy9p2PgK4N0D4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ORmwNY/SW0adEBvW0WB2fVi4QDsd/6Zr4lQnnOxmIUsn+pNgWnlC9hIhOZrKCbMv8 p+k7hmXe5rUIv1wpdhTNF8nmlETv59VRovRHXNAMJycnxUxeBTbmib8zikrXzLJzQL QIJtfNMM4HqklnL66YCwo2w97352M4H2dX075wxs= From: "ibuclaw at gdcproject dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/111537] ICE: in set_cell_span, at text-art/table.cc:148 with D front-end and -fanalyzer Date: Wed, 11 Oct 2023 16:33:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ibuclaw at gdcproject dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm 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=3D111537 --- Comment #2 from Iain Buclaw --- (In reply to David Malcolm from comment #1) > Am trying to reproduce locally, but when I run this in my BUILDDIR/gcc: > ./gdc -B. -S -fanalyzer oob.d=20 > I get: > d21: error: cannot find source code for runtime library file 'object.d' >=20 > Possibly a silly question, but what am I doing wrong? The library sources aren't in any paths that the compiler looks for. It sh= ould work without any explicit `-I` if the target libraries were installed. This alternative reproducer should get you off the ground though. --- mkdir gcc; echo "module gcc.builtins;" > gcc/builtins.d cat > oob.d << EOF module object; import gcc.builtins; void main() { char[5] arr; __builtin_strcpy(arr.ptr, "hello world"); } EOF ./gdc -B. -S -fanalyzer oob.d=