www.digitalmars.com         C & C++   DMDScript  

D.gnu - ICE: in get_frame_for_symbol, at d/d-codegen.cc:2428

reply Andrey Zherikov <andrey.zherikov gmail.com> writes:
Saw 
[here|https://github.com/andrey-zherikov/argparse/actions/runs/9617154563/job/26528299541]
Is this known problem?
```
/usr/bin/gdc-12 -fdebug -fprofile-arcs -ftest-coverage -g 
-funittest -Werror -Wall -fversion=Have_argparse -Isource/ 
-I../../../.dub/cache/argparse/~workflow/code/argparse-test-library-unittest-cov-yM
nxIRXG_FGbYRJh4kFcQ ../../../.dub/cache/argparse/~workflow/code/argparse-test-library-unittest-cov-yM2nxIRXG_FGbYRJh4
FcQ/dub_test_root.d source/argparse/ansi.d source/argparse/api/ansi.d
source/argparse/api/argument.d source/argparse/api/argumentgroup.d
source/argparse/api/cli.d source/argparse/api/command.d
source/argparse/api/enums.d source/argparse/api/restriction.d
source/argparse/api/subcommand.d source/argparse/config.d
source/argparse/internal/arguments.d source/argparse/internal/argumentuda.d
source/argparse/internal/argumentudahelpers.d
source/argparse/internal/command.d source/argparse/internal/commandinfo.d
source/argparse/internal/completer.d source/argparse/internal/enumhelpers.d
source/argparse/internal/help.d source/argparse/internal/lazystring.d
source/argparse/internal/parsehelpers.d source/argparse/internal/parser.d
source/argparse/internal/restriction.d source/argparse/internal/style.d
source/argparse/internal/utils.d source/argparse/internal/valueparser.d
source/argparse/package.d source/argparse/param.d source/argparse/result.d -o
/home/runner/.dub/cache/argparse/~workflow/build/argparse-test-library-unittest-cov-kpcOGwd38W2eUS9xKfCAJQ/argparse-test-library
source/argparse/internal/command.d:362:10: internal compiler 
error: in get_frame_for_symbol, at d/d-codegen.cc:2428
   362 |          (const Command[] cmdStack, string argName, 
string[] argValue)
       |          ^
0x1bf650a internal_error(char const*, ...)
	???:0
0x7a8c6a fancy_abort(char const*, int, char const*)
	???:0
0x9a81b0 ExprVisitor::visit(FuncExp*)
	???:0
0x9a7c83 build_expr(Expression*, bool, bool)
	???:0
0x9a78b9 DeclVisitor::visit(VarDeclaration*)
	???:0
0x9a6337 DeclVisitor::visit(TemplateInstance*)
	???:0
0x9a192a build_decl_tree(Dsymbol*)
	???:0
0x9b1a98 build_module_tree(Module*)
	???:0
0x9a477b DeclVisitor::visit(Module*)
	???:0
0x9a192a build_decl_tree(Dsymbol*)
	???:0
Please submit a full bug report, with preprocessed source (by 
using -freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions.
Error /usr/bin/gdc-12 failed with exit code 1.
```
Jun 21
next sibling parent Andrey Zherikov <andrey.zherikov gmail.com> writes:
Sorry, link wasn't rendered correctly: 
https://github.com/andrey-zherikov/argparse/actions/runs/9617154563/job/26528299541
Jun 21
prev sibling parent reply Iain Buclaw <ibuclaw gdcproject.org> writes:
On Friday, 21 June 2024 at 17:10:33 UTC, Andrey Zherikov wrote:
 Saw 
 [here|https://github.com/andrey-zherikov/argparse/actions/runs/9617154563/job/26528299541]
 Is this known problem?
 ```
Which patch release of gdc-12 is being used here? I can't reproduce with 12.3.0. Doing a spot check of the closed issues between 12.1..12.3, I can't see any ICEs that reference the same line. ``` $ git diff releases/gcc-12.1.0..releases/gcc-12.3.0 gcc/d/ | \ grep "PR d" | \ sed -e 's|+\s*|https://gcc.gnu.org/|' -e 's|PR d/|PR|' ``` https://gcc.gnu.org/PR109144 https://gcc.gnu.org/PR109108 https://gcc.gnu.org/PR108877 https://gcc.gnu.org/PR108055 https://gcc.gnu.org/PR108050 https://gcc.gnu.org/PR107592 https://gcc.gnu.org/PR106638 https://gcc.gnu.org/PR106623 https://gcc.gnu.org/PR106563 https://gcc.gnu.org/PR106555 https://gcc.gnu.org/PR106139 https://gcc.gnu.org/PR105544
Jun 21
parent Andrey Zherikov <andrey.zherikov gmail.com> writes:
On Friday, 21 June 2024 at 18:02:36 UTC, Iain Buclaw wrote:
 On Friday, 21 June 2024 at 17:10:33 UTC, Andrey Zherikov wrote:
 Saw 
 [here|https://github.com/andrey-zherikov/argparse/actions/runs/9617154563/job/26528299541]
 Is this known problem?
 ```
Which patch release of gdc-12 is being used here? I can't reproduce with 12.3.0.
According to compiler installation, it's: ``` Setting up gdc-12 (12.3.0-1ubuntu1~22.04) ... ```
Jun 21