From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0F2C53858D32; Wed, 1 Nov 2023 18:37:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0F2C53858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698863839; bh=UHF6REpLUsLA4H2oRSnaw2Cqu/0LgReg9S5uJ5hwvvE=; h=From:To:Subject:Date:From; b=T4n57JxFhLI52+IPUBS5n1O4YEBxkxLYP2lVa+rQFml1SnH/RNM7sq47/DogAkey5 KtP3p3HN9XCg/FZuIUnRgLtLNQXzmy7pRxCvOmypxEBc2nwN8edJETfGTII0ZXKlpp MWiKari4PguFwZZ1I7TqhG1gYgKYEb0trqXn/290= From: "s_gccbugzilla at nedprod dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/112339] New: ICE with namespaced attribute on function Date: Wed, 01 Nov 2023 18:37:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: s_gccbugzilla at nedprod dot com 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112339 Bug ID: 112339 Summary: ICE with namespaced attribute on function Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: s_gccbugzilla at nedprod dot com Target Milestone: --- This, if compiled with trunk GCC or any recent major version of GCC: ``` [[clang::no_sanitize("bounds")]] void foo()=20 { } ``` ... with options `-Wno-attributes=3Dclang::no_sanitize -fsanitize=3Dundefin= ed` produces ICE: ``` : In function 'void foo()': :3:1: internal compiler error: in tree_to_uhwi, at tree.cc:6469 3 | } | ^ 0x266430e internal_error(char const*, ...) ???:0 0xb01c2c fancy_abort(char const*, int, char const*) ???:0 0xb97938 cp_genericize(tree_node*) ???:0 0xbe33ef finish_function(bool) ???:0 0xcebe49 c_parse_file() ???:0 0xe2ceb9 c_common_parse_file() ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. Compiler returned: 1 ``` Godbolt demo: https://godbolt.org/z/hs3xqeqn1=