https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112285

            Bug ID: 112285
           Summary: `in` class parameter with `gdc -fpreview=in` 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=in -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__T5ArrayTCQCeQCd7DsymbolZQxMDFQvZvZv
        ???:0
0x8869fb DsymbolSemanticVisitor::visit(ClassDeclaration*)
        ???:0
0x8780f0
_D3dmd7dsymbol14foreachDsymbolFPSQBf4root5array__T5ArrayTCQCeQCd7DsymbolZQxMDFQvZvZv
        ???: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 <https://bugs.archlinux.org/> for instructions.
```

Reply via email to