From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AE19E3858C2A; Mon, 30 Oct 2023 07:49:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE19E3858C2A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698652144; bh=YKs3LSfax7PDeqJ4kctXTdLRCGZWgu1WDcNqNifDwQg=; h=From:To:Subject:Date:From; b=epzFLUgHSiTM1N5/V5qlcnHIJXoG5x0DCotsoFz33u/uar8IW6crnfJkCNoGC3rjj FeTNDbLQe6jLdda+viBdpBL82SKG8VU3pUoibx8fXKnFCr800Z7szyPRE6trlvAo9Q gXh0W26wKp2D7F6qG8dsGVESqoLMYYWsRrSnHwz0= From: "gcc.gnu.org at webfreak dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug d/112285] New: `in` class parameter with `gdc -fpreview=in` causes ICE Date: Mon, 30 Oct 2023 07:49:03 +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: 13.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gcc.gnu.org at webfreak dot org 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112285 Bug ID: 112285 Summary: `in` class parameter with `gdc -fpreview=3Din` causes ICE Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: gcc.gnu.org at webfreak dot org Target Milestone: --- ``` gdc (GCC) 13.2.1 20230801 Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. (from ArchLinux packages) ``` reduced reproduction code: ``` // test.d struct NativePath { } class Package { NativePath m_path; void getSubConfiguration(in Package ) { } } ``` CLI: ``` gdc -fpreview=3Din -freport-bug test.d ``` error: ``` d21: internal compiler error: in layout_aggregate_type, at d/types.cc:562 0x1bceda4 internal_error(char const*, ...) ???:0 0x7bbfc5 fancy_abort(char const*, int, char const*) ???:0 0xa14ad3 build_ctype(Type*) ???:0 0xa234e2 Target::preferPassByRef(Type*) ???:0 0x9d7562 typeSemantic(Type*, Loc const&, Scope*) ???:0 0x8a1c1e DsymbolSemanticVisitor::funcDeclarationSemantic(FuncDeclaration*) ???:0 0x8780f0 _D3dmd7dsymbol14foreachDsymbolFPSQBf4root5array__T5ArrayTCQCeQCd7DsymbolZQx= MDFQvZvZv ???:0 0x8869fb DsymbolSemanticVisitor::visit(ClassDeclaration*) ???:0 0x8780f0 _D3dmd7dsymbol14foreachDsymbolFPSQBf4root5array__T5ArrayTCQCeQCd7DsymbolZQx= MDFQvZvZv ???:0 0x87c94d DsymbolSemanticVisitor::visit(Module*) ???:0 0x87e9ed dsymbolSemantic(Dsymbol*, Scope*) ???:0 Please submit a full bug report, with preprocessed source. Please include the complete backtrace with any bug report. See for instructions. ```=