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

            Bug ID: 123450
           Summary: d: internal compiler error: Segmentation fault with -H
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: ibuclaw at gcc dot gnu.org
  Target Milestone: ---

Generating a D interface from a module with a debug condition.

gdc -H test.d

```
debug enum issue21406 = 1;
```


d21: internal compiler error: Segmentation fault
0x29ca90b internal_error(char const*, ...)
        ../../../gcc-15/gcc/diagnostic-global-context.cc:517
0x140067a crash_signal
        ../../../gcc-15/gcc/toplev.cc:322
0x709ad87dc32f ???
        ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0xcc3990 _D3dmd10identifier10Identifier8toStringMxFNaNbNfZAxa
        ../../../gcc-15/gcc/d/dmd/identifier.d:93
0xc9dedc ConditionPrettyPrintVisitor::visit(DebugCondition*)
        ../../../gcc-15/gcc/d/dmd/hdrgen.d:3256
0xc9eee0
_D3dmd6hdrgen17conditionToBufferFCQBg4cond9ConditionKSQCa6common9outbuffer9OutBufferKSQDgQDf11HdrGenStateZv
        ../../../gcc-15/gcc/d/dmd/hdrgen.d:3237
0xc9ef0d
_D3dmd6hdrgen9toCBufferFCQx7dsymbol7DsymbolKSQBr6common9outbuffer9OutBufferKSQCxQCw11HdrGenStateZ27visitConditionalDeclarationMFCQEx6attrib22ConditionalDeclarationZv
        ../../../gcc-15/gcc/d/dmd/hdrgen.d:1226
0xc9dffd
_D3dmd6hdrgen9toCBufferFCQx7dsymbol7DsymbolKSQBr6common9outbuffer9OutBufferKSQCxQCw11HdrGenStateZv
        ../../../gcc-15/gcc/d/dmd/hdrgen.d:2057
0xca47b3
_D3dmd6hdrgen15moduleToBuffer2FCQBe7dmodule6ModuleKSQBy6common9outbuffer9OutBufferKSQDeQDd11HdrGenStateZv
        ../../../gcc-15/gcc/d/dmd/hdrgen.d:315
0xc9dffd
_D3dmd6hdrgen9toCBufferFCQx7dsymbol7DsymbolKSQBr6common9outbuffer9OutBufferKSQCxQCw11HdrGenStateZv
        ../../../gcc-15/gcc/d/dmd/hdrgen.d:2057
0xc9e086
_D3dmd6hdrgen10genhdrfileFCQz7dmodule6ModulebKSQBt6common9outbuffer9OutBufferZv
        ../../../gcc-15/gcc/d/dmd/hdrgen.d:98
0xdbb929 d_parse_file
        ../../../gcc-15/gcc/d/d-lang.cc:1224
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to