[Bug fortran/78719] [F03] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1438

2019-08-17 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78719

kargl at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |9.3

--- Comment #6 from kargl at gcc dot gnu.org ---
Fixed on trunk and 9-branch.  Thanks for bug report.

[Bug fortran/78719] [F03] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1438

2019-08-17 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78719

--- Comment #5 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Sat Aug 17 18:11:58 2019
New Revision: 274610

URL: https://gcc.gnu.org/viewcvs?rev=274610&root=gcc&view=rev
Log:
2019-08-17  Steven G. Kargl  

PR fortran/78719
* decl.c (get_proc_name): Check for a CLASS entity when trying to
add attributes to an entity that already has an explicit interface.

2019-08-17  Steven G. Kargl  

PR fortran/78719
* gfortran.dg/pr78719_1.f90: New test.
* gfortran.dg/pr78719_2.f90: Ditto.
* gfortran.dg/pr78719_3.f90: Ditto.

Added:
branches/gcc-9-branch/gcc/testsuite/gfortran.dg/pr78719_1.f90
branches/gcc-9-branch/gcc/testsuite/gfortran.dg/pr78719_2.f90
branches/gcc-9-branch/gcc/testsuite/gfortran.dg/pr78719_3.f90
Modified:
branches/gcc-9-branch/gcc/fortran/ChangeLog
branches/gcc-9-branch/gcc/fortran/decl.c
branches/gcc-9-branch/gcc/testsuite/ChangeLog

[Bug fortran/78719] [F03] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1438

2019-08-17 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78719

kargl at gcc dot gnu.org changed:

   What|Removed |Added

   Priority|P3  |P4
 CC||kargl at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |kargl at gcc dot gnu.org

[Bug fortran/78719] [F03] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1438

2019-08-17 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78719

--- Comment #4 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Sat Aug 17 14:27:07 2019
New Revision: 274604

URL: https://gcc.gnu.org/viewcvs?rev=274604&root=gcc&view=rev
Log:
2019-08-17  Steven G. Kargl  

PR fortran/78719
* decl.c (get_proc_name): Check for a CLASS entity when trying to
add attributes to an entity that already has an explicit interface.

2019-08-17  Steven G. Kargl  

PR fortran/78719
* gfortran.dg/pr78719_1.f90: New test.
* gfortran.dg/pr78719_2.f90: Ditto.
* gfortran.dg/pr78719_3.f90: Ditto.

Added:
trunk/gcc/testsuite/gfortran.dg/pr78719_1.f90
trunk/gcc/testsuite/gfortran.dg/pr78719_2.f90
trunk/gcc/testsuite/gfortran.dg/pr78719_3.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/decl.c
trunk/gcc/testsuite/ChangeLog

[Bug fortran/78719] [F03] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1438

2016-12-15 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78719

Dominique d'Humieres  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-12-15
 Ever confirmed|0   |1

--- Comment #3 from Dominique d'Humieres  ---
Confirmed. An instrumented gfortran gives

../../work/gcc/fortran/trans-decl.c:1472:29: runtime error: member access
within null pointer of type 'struct gfc_symbol'
ASAN:DEADLYSIGNAL
=
==74738==ERROR: AddressSanitizer: SEGV on unknown address 0x0110 (pc
0x000100561635 bp 0x7fff5fbfe0a0 sp 0x7fff5fbfdf40 T0)
==74738==The signal is caused by a READ memory access.
==74738==Hint: address points to the zero page.
#0 0x100561634 in gfc_get_symbol_decl(gfc_symbol*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x100561634)
#1 0x1005f0fc7 in gfc_conv_variable(gfc_se*, gfc_expr*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x1005f0fc7)
#2 0x1005ce99c in gfc_conv_expr(gfc_se*, gfc_expr*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x1005ce99c)
#3 0x100642a40 in gfc_trans_pointer_assignment(gfc_expr*, gfc_expr*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x100642a40)
#4 0x100648154 in gfc_trans_pointer_assign(gfc_code*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x100648154)
#5 0x100438fc6 in trans_code(gfc_code*, tree_node*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x100438fc6)
#6 0x10043a9af in gfc_trans_code(gfc_code*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x10043a9af)
#7 0x100586645 in gfc_generate_function_code(gfc_namespace*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x100586645)
#8 0x10043aa36 in gfc_generate_code(gfc_namespace*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x10043aa36)
#9 0x10028d66e in translate_all_program_units(gfc_namespace*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x10028d66e)
#10 0x1002a8776 in gfc_parse_file()
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x1002a8776)
#11 0x100405913 in gfc_be_parse_file()
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x100405913)
#12 0x104b49754 in compile_file()
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x104b49754)
#13 0x104b521ed in do_compile()
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x104b521ed)
#14 0x106c37bfe in toplev::main(int, char**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x106c37bfe)
#15 0x106c3cf17 in main
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x106c3cf17)
#16 0x7fffcfa5a254 in start (/usr/lib/system/libdyld.dylib+0x5254)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x100561634)
in gfc_get_symbol_decl(gfc_symbol*)
==74738==ABORTING
==74738==WARNING: ASan is ignoring requested __asan_handle_no_return: stack
top: 0x7fff5fc0; bottom 0x000154e9; size: 0x7ffe0ad7
(140729080283136)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
pr78719.f90:13:0:

s => g

internal compiler error: Abort trap: 6