[Bug fortran/87154] Internal compiler error: in gimplify_expr, at gimplify.c:12215

2018-08-30 Thread uberprugelknabe at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87154

--- Comment #1 from Ögmundur Petersson  ---
Created attachment 44630
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44630=edit
This file works fine

[Bug fortran/87154] New: Internal compiler error: in gimplify_expr, at gimplify.c:12215

2018-08-30 Thread uberprugelknabe at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87154

Bug ID: 87154
   Summary: Internal compiler error: in gimplify_expr, at
gimplify.c:12215
   Product: gcc
   Version: 7.3.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
  Assignee: unassigned at gcc dot gnu.org
  Reporter: uberprugelknabe at hotmail dot com
  Target Milestone: ---

Created attachment 44629
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44629=edit
This file triggers the crash

When compiling the attached source file (originally from a large project,
reduced to just the lines causing the crash) an ICE is triggered.

Confirmed in both gcc 7.3.1 and 7.3.0.

Example compiles correctly in Intel fortran and PGI fortran.

A slightly modified source file also attached using an explicit pointer instead
of an ASSICATE compiles without errors.

Stack trace:
gfortran -c crash.f90

crash.f90:31:0:



   args = str_split(param,',')

internal compiler error: in gimplify_expr, at gimplify.c:12215

0x87241e gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)

../../gcc/gimplify.c:12215

0x8789e9 gimplify_modify_expr

../../gcc/gimplify.c:5488

0x871489 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)

../../gcc/gimplify.c:11248

0x873b08 gimplify_stmt(tree_node**, gimple**)

../../gcc/gimplify.c:6505

0x871d2b gimplify_statement_list

../../gcc/gimplify.c:1715

0x871d2b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)

../../gcc/gimplify.c:11676

0x873b08 gimplify_stmt(tree_node**, gimple**)

../../gcc/gimplify.c:6505

0x874448 gimplify_bind_expr

../../gcc/gimplify.c:1288

0x8720aa gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)

../../gcc/gimplify.c:11448

0x873b08 gimplify_stmt(tree_node**, gimple**)

../../gcc/gimplify.c:6505

0x871d2b gimplify_statement_list

../../gcc/gimplify.c:1715

0x871d2b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)

../../gcc/gimplify.c:11676

0x873b08 gimplify_stmt(tree_node**, gimple**)

../../gcc/gimplify.c:6505

0x874448 gimplify_bind_expr

../../gcc/gimplify.c:1288

0x8720aa gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)

../../gcc/gimplify.c:11448

0x873b08 gimplify_stmt(tree_node**, gimple**)

../../gcc/gimplify.c:6505

0x871d2b gimplify_statement_list

../../gcc/gimplify.c:1715

0x871d2b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)

../../gcc/gimplify.c:11676

0x873b08 gimplify_stmt(tree_node**, gimple**)

../../gcc/gimplify.c:6505

0x874448 gimplify_bind_expr

../../gcc/gimplify.c:1288

Please submit a full bug report,

with preprocessed source if appropriate.

Please include the complete backtrace with any bug report.

See <https://gcc.gnu.org/bugs/> for instructions.

[Bug fortran/82617] Internal compiler error in expand_expr_real_1 when compiling the attached file

2018-07-13 Thread uberprugelknabe at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82617

--- Comment #10 from Ögmundur Petersson  ---
Thanks for the fix!

[Bug middle-end/82617] Internal compiler error in expand_expr_real_1 when compiling the attached file

2017-10-20 Thread uberprugelknabe at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82617

--- Comment #3 from Ögmundur Petersson  ---
I fear that it doesn't add any new information but here is my full backtrace:

test.f90:22:0:

   FUNCTION str_words(str,white) RESULT(items)

Error: Local declaration from a different function
..__result
test.f90:27:0:

 items = strwords_impl(str,white)

note: in statement
..__result = ..__result;
test.f90:22:0:

   FUNCTION str_words(str,white) RESULT(items)

Error: Local declaration from a different function
..__result
test.f90:27:0:

 items = strwords_impl(str,white)

note: in statement
_28 = (integer(kind=8)) ..__result;
test.f90:22:0:

   FUNCTION str_words(str,white) RESULT(items)

Error: Local declaration from a different function
..__result
test.f90:27:0:

 items = strwords_impl(str,white)

note: in statement
D.3662 = (sizetype) ..__result;
test.f90:22:0:

   FUNCTION str_words(str,white) RESULT(items)

internal compiler error: verify_gimple failed
0xc330ae verify_gimple_in_cfg(function*, bool)
../../gcc-7.2.0/gcc/tree-cfg.c:5266
0xb15866 execute_function_todo
../../gcc-7.2.0/gcc/passes.c:1966
0xb168b2 execute_todo
../../gcc-7.2.0/gcc/passes.c:2016
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.

[Bug fortran/82617] New: Internal compiler error in expand_expr_real_1 when compiling the attached file

2017-10-19 Thread uberprugelknabe at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82617

Bug ID: 82617
   Summary: Internal compiler error in expand_expr_real_1 when
compiling the attached file
   Product: gcc
   Version: 7.2.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
  Assignee: unassigned at gcc dot gnu.org
  Reporter: uberprugelknabe at hotmail dot com
  Target Milestone: ---

Created attachment 42400
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42400=edit
Source file triggering the crash

When compiling the attached file gfortran crashes with the error "Internal
compiler error in expand_expr_real_1". Confirmed in versions 7.2.0 and 4.8.5.
File compiles successfully with no warnings issued in intel fortran compiler
16.0.3 and pgi fortran compiler 17.4.0.