[Bug fortran/82943] Error derived type-bound procedure PASS(this)

2017-12-30 Thread dreich at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82943

--- Comment #2 from Darrell Reich  ---
Debug backtrace
find . -iname '*.c' -type f -exec grep -inH --color ‘Error' {} \;
% gdb ~/c/work/compiler/build-gcc/gcc/f951
(gdb) break error.c:517
(gdb) run -Wall ~/c/work/workspace4/Test02/test.f90
(gdb) bt 
#0  gfc_move_error_buffer_from_to (
buffer_from=buffer_from@entry=0x101c25320 ,
buffer_to=buffer_t
o@entry=0xc5b0)
at ../../svn/gcc/fortran/error.c:1416
#1  0x00010043474f in gfc_push_error (
err=err@entry=0xc5b0)
at ../../svn/gcc/fortran/error.c:1434
#2  0x000100471b2c in gfc_match_st_function ()
at ../../svn/gcc/fortran/match.c:5529
#3  0x00010048c33a in match_word_omp_simd (
subr=, old_locus=0xc7a0,
simd_matched=,
str=)
at ../../svn/gcc/fortran/parse.c:93
#4  0x00010048fcac in match_word (
old_locus=0xc7a0, subr=,
str=0x0) at ../../svn/gcc/fortran/parse.c:368
#5  decode_statement ()
at ../../svn/gcc/fortran/parse.c:366
#6  0x000100491b75 in next_free ()
at ../../svn/gcc/fortran/parse.c:1225
#7  next_statement ()
at ../../svn/gcc/fortran/parse.c:1457
#8  0x000100497232 in gfc_parse_file ()
at ../../svn/gcc/fortran/parse.c:6161
#9  0x0001004df17c in gfc_be_parse_file ()
at ../../svn/gcc/fortran/f95-lang.c:204
#10 0x000100a566bd in compile_file ()
at ../../svn/gcc/toplev.c:455
#11 0x0001014a2a73 in do_compile ()
at ../../svn/gcc/toplev.c:2059
#12 toplev::main (this=this@entry=0xcb6e,
argc=, argc@entry=3,
argv=, argv@entry=0xcbd0)
at ../../svn/gcc/toplev.c:2194
#13 0x000101536223 in main (argc=3,
argv=0xcbd0) at ../../svn/gcc/main.c:39

[Bug fortran/82943] Error derived type-bound procedure PASS(this)

2017-12-30 Thread dreich at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82943

--- Comment #3 from Darrell Reich  ---
Found relevant section of Fortran specification
4.5.1 Derived-type definition
R429 derived-type-def is derived-type-stmt
   [ type-param-def-stmt ] ...
   [ private-or-sequence ] ...
   [ component-part ]
   [ type-bound-procedure-part ]
   end-type-stmt
R430 derived-type-stmt is TYPE [ [ , type-attr-spec-list ] :: ] type-name
   [ ( type-param-name-list ) ]
R431 type-attr-spec is access-spec
   or EXTENDS ( parent-type-name )
   or ABSTRACT
   or BIND (C)
https://gcc.gnu.org/wiki/GFortranStandards#Fortran_2003
http://www.j3-fortran.org/doc/year/04/04-007.pdf

I am building gfortran with Windows 7 Cygwin with Eclipse Oxygen PTP Photran

[Bug c/83635] New: Cygwin build error: i386.c

2017-12-30 Thread dreich at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83635

Bug ID: 83635
   Summary: Cygwin build error: i386.c
   Product: gcc
   Version: 8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: dreich at yahoo dot com
  Target Milestone: ---

The windows build is broken. See errors and subversion log history below. How
do I undo / fix changes to this file?

svn update
make

../../svn/gcc/config/i386/i386.c:44778:1: error: too many initializers for
‘const attribute_spec’
};
^
../../svn/gcc/config/i386/i386.c:44778:1: error: cannot convert ‘bool’ to
‘const attribute_spec::exclusions*’ in initialization

svn log i386.c | head 
r255997 | jakub | 2017-12-25 03:59:17 -0800 (Mon, 25 Dec 2017) | 115 lines

r255975 | kyukhin | 2017-12-22 04:37:16 -0800 (Fri, 22 Dec 2017) | 78 lines

r255974 | itsimbal | 2017-12-22 03:41:02 -0800 (Fri, 22 Dec 2017) | 23 lines

I have been able to build previously gcc, g++, gfortran compiler suite using
Windows 7, Cygwin, Eclipse Oxygen PTP Photran

[Bug fortran/82943] New: Error derived type-bound procedure PASS(this)

2017-11-10 Thread dreich at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82943

Bug ID: 82943
   Summary: Error derived type-bound procedure PASS(this)
   Product: gcc
   Version: 8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
  Assignee: unassigned at gcc dot gnu.org
  Reporter: dreich at yahoo dot com
  Target Milestone: ---

Created attachment 42582
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42582&action=edit
Sample program test case showing error

The attached code works without the (n) in the typedef and (n=*) or (*) in the
class line and works in Intel Fortran as submitted here. I tested this with
last night's update in svn gfortran 8 with Cygwin and Eclipse PTP Photran.
I looked through the test suite and found some test cases with NOPASS and
PASS(self) but non with an argument like this.

Error: Argument 'this' of 'foo' with PASS(this) at (1) must be of the
derived-type 'typedef'