From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 36AEB385BF81; Sun, 17 May 2020 11:35:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 36AEB385BF81 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589715313; bh=fQJlfkWjkrDoPhSMYl/jB1tiWb6Amg8KabS9dZ6Z7K8=; h=From:To:Subject:Date:From; b=kjB/Oa2cE7WPIGGTKNsN5ZeLWWE8zGNduSqeoXOoSKQnTg0GNY46z5AMqiZwy6jhD T1+cS53Y+YRatxboMt+7he1QsVOwuHP4uZLdkUoveG4Z4NcC+ESsnZrJsBlLiZl0PE cPnIxfMc5lgCm9uBxnlGoxfFtm27TRQctsbxaYoE= From: "witold.baryluk+gcc at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug d/95173] New: [D] ICE on some architecture targets when trying to use unknown attribute Date: Sun, 17 May 2020 11:35:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: d X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: witold.baryluk+gcc at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ibuclaw at gdcproject dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Sun, 17 May 2020 11:35:13 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95173 Bug ID: 95173 Summary: [D] ICE on some architecture targets when trying to use unknown attribute Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: witold.baryluk+gcc at gmail dot com Target Milestone: --- https://explore.dgnu.org/z/bseyKQ ``` import gcc.attribute; @attribute("foo") void f() {} ``` This code crashes the compiler when compiling for alpha-linux-gnu, sparc64-= elf, hppa-linux-gnu, mmix-knuth-mmixware, pdp11-aout, lm32-elf and possibly more with variations. (But sparc64-sun-solaris2.11 for examples works fine). The code compiles correctly for known attributes. Other targets do compile without a crash, just with a warning about unknown attribute. That is correct behaviour.=