[Bug c++/121040] ICE on g++15.1

2025-07-11 Thread gessos.paul at yahoo dot gr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121040

--- Comment #4 from Chameleon  ---
... if I write the correct
&& (SquareMatrix>
instead of wrong
(SquareMatrix>

[Bug c++/121040] ICE on g++15.1

2025-07-11 Thread gessos.paul at yahoo dot gr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121040

--- Comment #3 from Chameleon  ---
ICE can be avoided if I write the missing && in the code.
But it is an ICE and it must be reported.

[Bug c++/121040] ICE on g++15.1

2025-07-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121040

Andrew Pinski  changed:

   What|Removed |Added

   Keywords||error-recovery,
   ||ice-on-invalid-code

--- Comment #2 from Andrew Pinski  ---
rageOrder::ROW_MAJOR>&; P = std::array&]’:
test_linear_solvers.cpp:80:28:   required from here
../src/direct_linear_solvers.h:203:2: internal compiler error: in tsubst_expr,
at cp/pt.cc:21777
0x2a0680f internal_error(char const*, ...)
   
/home/apinski/src/upstream-gcc-git/gcc/gcc/diagnostic-global-context.cc:517
0xb5c99d fancy_abort(char const*, int, char const*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/diagnostic.cc:1810
0x8a5a60 tsubst_expr(tree_node*, tree_node*, int, tree_node*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/cp/pt.cc:21777
0xbde20d satisfy_atom
/home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:2478
0xbde20d satisfy_constraint_r
/home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:2543
0xbddcd3 satisfy_conjunction
/home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:2239
0xbddcd3 satisfy_constraint_r
/home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:2539
0xbddcd3 satisfy_conjunction
/home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:2239
0xbddcd3 satisfy_constraint_r
/home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:2539
0xbddcd3 satisfy_conjunction
/home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:2239
0xbddcd3 satisfy_constraint_r
/home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:2539
0xbde7d1 satisfy_normalized_constraints
/home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:2568
0xbdafb4 satisfy_declaration_constraints
/home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:2790
0xbdafb4 constraint_satisfaction_value
/home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:2811
0xbde853 constraints_satisfied_p(tree_node*, tree_node*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:2848
0xdf05c7 fn_type_unification(tree_node*, tree_node*, tree_node*, tree_node*
const*, unsigned int, tree_node*, unification_kind_t, int, conversion**, bool,
bool)
/home/apinski/src/upstream-gcc-git/gcc/gcc/cp/pt.cc:23431
0xb7fe9d add_template_candidate_real
/home/apinski/src/upstream-gcc-git/gcc/gcc/cp/call.cc:3723
0xb8101f add_template_candidate
/home/apinski/src/upstream-gcc-git/gcc/gcc/cp/call.cc:3813
0xb8101f add_candidates
/home/apinski/src/upstream-gcc-git/gcc/gcc/cp/call.cc:6872
0xb81c25 add_candidates
/home/apinski/src/upstream-gcc-git/gcc/gcc/cp/call.cc:5107
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See  for instructions.

[Bug c++/121040] ICE on g++15.1

2025-07-11 Thread gessos.paul at yahoo dot gr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121040

--- Comment #1 from Chameleon  ---
Created attachment 61843
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61843&action=edit
The .ii file, .xz compressed