public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/112285] New: `in` class parameter with `gdc -fpreview=in` causes ICE
@ 2023-10-30  7:49 gcc.gnu.org at webfreak dot org
  2024-03-10 18:07 ` [Bug d/112285] " cvs-commit at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: gcc.gnu.org at webfreak dot org @ 2023-10-30  7:49 UTC (permalink / raw)
  To: gcc-bugs

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.
```

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-03-10 19:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-30  7:49 [Bug d/112285] New: `in` class parameter with `gdc -fpreview=in` causes ICE gcc.gnu.org at webfreak dot org
2024-03-10 18:07 ` [Bug d/112285] " cvs-commit at gcc dot gnu.org
2024-03-10 18:53 ` cvs-commit at gcc dot gnu.org
2024-03-10 19:11 ` cvs-commit at gcc dot gnu.org
2024-03-10 19:14 ` ibuclaw at gdcproject dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).