Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Changed between 20170618 and 20170716, at -O[gs123] :
$ cat z1.c
_Complex int f (_Complex int x)
{
x += __INT_MAX__;
x += 1;
return x
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Introduced between 20170924 and 20171008, at -O[gs123] :
$ cat z1.c
_Bool f1(_Complex unsigned x, _Complex unsigned y)
{
_Complex unsigned t1 = x / y
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Introduced between 20180527 and 20180603, at -O[gs123] :
$ cat z1.c
extern void a (void);
void b (void)
{
void *c;
c = a;
*(char
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Changed between 20180211 and 20180218.
Derived from g++.dg/cpp0x/lambda/lambda-variadic1.C :
$ cat z1.cc
template
static void foo()
{
[](Args, int x
++
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
With option -std=c++11 or newer, down to at least gcc-4.8,
due to a missing return value :
$ cat z1.cc
template
auto fn1 (V&& v) -> decltype(U(v))
{
return; ///
}
void fn2 ()
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Changed between 20170820 and 20170910 :
$ cat z1.c
void *memcpy (void *, void *, __SIZE_TYPE__ *);
void *a, *b;
void f (void)
{
long unsigned int c
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Changed recently, between 20180603 and 20180610 :
$ cat z1.cc
template
void f (const char (&)[a]) { }
void f (int) { }
template
void
g ()
{
f ({2.0});
}
$ gcc-9-2018060
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Changed between 20180318 and 20180325 :
$ cat z1.cc
template struct t;
template
void f ()
{
const int b = "";
t::c;
}
$ gcc-8-2
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Introduced between 20180520 and 20180527.
Inspired by gfortran.dg/data_stmt_pointer.f90 :
$ cat z1.f90
program p
type t
real
: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
With an invalid or non-integer value, down to gfortran-8 :
$ cat z1.f90
program p
real :: a(3)
integer :: i
do i = 1, 3
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Changed between 20190728 and 20190811 :
$ cat z1.f90
program p
if ( allocated() ) stop 1
end
$ gfortran-10-20190728 -c z1.f90
z1.f90:2
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Affects versions down to at least 4.9, no backtrace produced :
$ cat z1.f90
program p
real :: z(3)
z = 2.0 * [real :: 1, [2], 3]
end
$ gfortran-10-20190825 -c z1.f90
f951: internal
: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Affects versions down to at least gcc-4.9 :
$ cat z1.f90
program p
print *, (1.0, 2.0) * [real :: (3.0 + 4.0)]
end
$ gfortran-10-20190825 -c z1.f90
f951: internal compiler
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91553
G. Steinmetz changed:
What|Removed |Added
Keywords||ice-on-valid-code
--- Comment #1 from G.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90519
G. Steinmetz changed:
What|Removed |Added
CC||gs...@t-online.de
--- Comment #2 from G
: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
There is an _old_ issue with -Wall (-Wunused-dummy-argument)
and _legal_ code with contained procedures.
It does not depend on
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Affects gfortran-8 an higher, has changed before 20180525 :
(one argument more than the library-kill)
$ cat z1.f90
program p
call kill (1, 2
: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
ICE hits gfortran-8 and higher - this changed just before 20180525.
Starting with correct code z0.f90, then providing wrong
: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Changed between 20180624 and 20180708 :
$ cat z1.f90
program p
print *, -merge([3,4], 0, [.false.,.true.])
end
$ cat z2.f90
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Changed between 20180909 and 20180916 :
$ cat z1.f90
program p
type t
class(*), allocatable :: a
end type
class(t) :: x
: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
With invalid code down to at least gfortran-5 :
$ cat z1.f90
program p
backspace (err=!)
endfile (err=!)
flush (err=!)
rewind (err=!)
end
$ gfortran-10-20190825 -c
: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Also an old issue, ICEs down to at least gfortran-5.
Starting with something legal :
$ cat z0.f90
program p
character(4) :: z = '1234'
block
integer(le
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91588
G. Steinmetz changed:
What|Removed |Added
Keywords||ice-on-valid-code
--- Comment #1 from G.
: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Changed between 20181028 and 20181104 :
$ cat z1.f90
program p
type t
integer :: a
end type
type(t) :: x = t(1
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Changed between 20190113 and 20190120.
For reference a z0_verify.f90 :
program p
real :: z(3) = 1.0
print *, is_contiguous(z)
print
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Changed between 20190106 (silently accepted) and 20190113 (ICE).
(null() is not an array)
$ cat z1.f90
program p
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Affects versions down to at least gfortran-5 :
$ cat z1.f90
program p
integer :: iol
inquire (iolength=iol) null() ! no dedicated
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Changed between 20190512 and 20190519 at -O[123] :
$ cat z1.f90
program p
real :: z(3) = [1.0, 2.0, 3.0]
call g(z
: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Behavior changed between 20180909 and 20180916 :
$ cat z1.f90
module m
type t
contains
final :: s
end type
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
The ICE slipped in between 20181021 and 20181028 :
$ cat z1.f90
program p
logical :: back = .true.
integer :: x(1) = findloc([1, 2, 1], '1', back=back)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91649
G. Steinmetz changed:
What|Removed |Added
Keywords||ice-on-invalid-code
--- Comment #1 from G
: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Follow-up of pr88227, since about 20190728 :
$ cat z1.f90
program p
print *, b'10110'
print *, o'10110
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Affects versions down to at least gfortran-5.
Together with an argument KIND= (1,2,4,8,16) :
$ cat z1.f90
program p
integer :: z(2)
z
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91651
G. Steinmetz changed:
What|Removed |Added
Keywords||ice-on-valid-code
--- Comment #1 from G.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91646
G. Steinmetz changed:
What|Removed |Added
CC||gs...@t-online.de
--- Comment #4 from G
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91646
--- Comment #5 from G. Steinmetz ---
Created attachment 46814
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46814&action=edit
Addon generator_module_hierarchy_ptr.f90
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91646
--- Comment #6 from G. Steinmetz ---
Created attachment 46815
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46815&action=edit
Input "2 2", result test_2_2.f90
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91646
--- Comment #7 from G. Steinmetz ---
Created attachment 46816
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46816&action=edit
Input "3 3", result test_3_3.f90
Enclosed are generators to systematically test the facts.
Please find attached
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Affects versions down to gfortran-5.
Missing a closing bracket :
$ cat z1.f90
program p
type t
end type
type (t x
x = t()
end
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Affects versions down to at least gfortran-5.
Similar also for intrinsics sum, size, shape, product.
$ cat z1.f90
program p
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91661
G. Steinmetz changed:
What|Removed |Added
Keywords||ice-on-valid-code
--- Comment #1 from G.
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
With a missing blank in "typea" in a free form source,
down to at least version 5 :
$ cat z1.f90
program p
typea
integer b
end type
type(a) :: c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91714
G. Steinmetz changed:
What|Removed |Added
Keywords||accepts-invalid
--- Comment #1 from G. St
: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
With a typo, down to at least gfortran-5.
$ cat z1.f90
character(1function f()
end
$ gfortran-10-20190901 -c z1.f90
f951: internal compiler error: Segmentation fault
0xcb928f
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91646
--- Comment #8 from G. Steinmetz ---
First a remark, the phrase "the facts" had an unintended
sound, should be read as "the given" or similar.
---
It is apparently not necessary to have a cascade of several
types, a single one suffices. Asso
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Something has changed between 20180722 and 20180805 :
$ cat z1.f90
module m
type t
character :: c(2) = [character(-1) :: 'a', &
: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Started with gcc-7 :
$ cat z1.f90
module m
type t
class(*), allocatable :: a[:]
end type
end
$ gfortran-6 -c z1.f90
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Affects versions down to at least gfortran-5.
In this case, source=[1] doesn't have same rank as x%a.
$ cat z1.f90
program p
type t
class(*), allocatable
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Affects versions down to at least gfortran-5.
Invalid constructor in z1.f90 should be rejected.
For reference :
$ cat z0_verify.f90
program p
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Started recently, between 20190825 and 20190901 :
$ cat z1.f90
subroutine s(x)
integer :: x(..)
select rank (-x)
end select
end
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
A parameter attribute prevents some checks in comparison to a
character variable. Affects gfortran down to at least version 5.
$ cat z1.f90
program
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91782
G. Steinmetz changed:
What|Removed |Added
Keywords||accepts-invalid
--- Comment #1 from G. St
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Changed between 20190630 and 20190728 :
$ cat z1.f90
program p
class(*), allocatable :: a(:)
a = [1, 2, 3]
a = f(a)
contains
: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Follow-up of pr91553, with a negation :
$ cat z1.f90
program p
complex :: x(1)
x = (1.0, 2.0) * [real :: -(3.0 + 4.0)]
end
$ cat z2.f90
program p
complex :: x(1)
x
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
With an invalid declaration since gfortran-9 :
$ cat z1.f90
program p
complex :: a(*)
real :: b(2)
b = a%im
end
$ gfortran-10
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91785
G. Steinmetz changed:
What|Removed |Added
Keywords||ice-on-invalid-code
--- Comment #1 from G
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Applying an old feature (z0.f90) to a new one (z1.f90) :
$ cat z0.f90
program p
integer :: n = 4habcd
print *, n
print *, transfer('abcd', 1)
end
$ gfortran-10-20190915
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Follow-up of pr91565,
using order with values < 1 or > n (with n = size of SHAPE).
$ cat z1.f90
program p
integer, parameter :: a(2)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87980
G. Steinmetz changed:
What|Removed |Added
CC||gs...@t-online.de
--- Comment #5 from G
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91300
G. Steinmetz changed:
What|Removed |Added
CC||gs...@t-online.de
--- Comment #4 from G
: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Since gfortran is supporting 15 dimensions :
(up to gcc-7 change sources to use 7+1 dims)
$ cat z0.f90
module m
real :: x(1,2,1,2,1,2,1,2)[1,2,1,2,1,2,1,*]
end
$ gfortran-10
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91300
--- Comment #5 from G. Steinmetz ---
Please ignore comment 4, wrong PR ...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87980
--- Comment #6 from G. Steinmetz ---
Variants that actually compile :
$ cat z3.f90 # with a scalar, x(:) -> x
module m
type t
contains
procedure :: f => g
end type
contains
subroutine g (z, x)
class(t) :: z
clas
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Changed between 20190310 and 20190331.
In the following, variable i is always i = 1.
$ cat z1.f90
program p
integer :: i
character(3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91862
G. Steinmetz changed:
What|Removed |Added
Keywords||ice-on-valid-code
--- Comment #1 from G.
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Changed between 20190217 and 20190224 :
$ cat z1.f90
program p
interface
subroutine sub(x) bind(c)
integer, allocatable, intent
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90795
G. Steinmetz changed:
What|Removed |Added
CC||gs...@t-online.de
--- Comment #2 from G
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90795
--- Comment #3 from G. Steinmetz ---
Compiles without "final::f" or with a scalar "b" :
$ cat z2.f90
module m
type t
contains
final :: f
end type
type t2
type(t), allocatable :: a
end type
type t3
type(t2),
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Changed between 20181028 and 20181104 :
$ cat z1.f90
program p
integer :: i
read (*,*) i%kind
end
$ gfortranc-10-20190922 -c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91864
G. Steinmetz changed:
What|Removed |Added
Keywords||ice-on-invalid-code
--- Comment #1 from G
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Changed between 20180402 and 20180525, with adjustl/adjustr :
$ cat z1.f90
program p
character(:), allocatable :: x
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
With invalid code since 20181104 :
$ cat z1.f90
program p
integer :: i
backspace (iostat=i%kind)
endfile (iostat=i%kind)
flush (iostat=i%kind)
rewind (iostat=i%kind)
end
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91942
G. Steinmetz changed:
What|Removed |Added
Keywords||ice-on-invalid-code
--- Comment #1 from G
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Follow-up of pr91650 :
$ cat z1.f90
program p
print *, f(b'1001')
print *, f(o'1001')
print *, f(z'1001'
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
If size exceeds actual limit 2**16 or -fmax-array-constructor :
$ cat z1.f90
program p
integer, parameter :: n = 10
integer, parameter
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Starting with gcc-8 (before 20180525) :
$ cat z1.f90
program p
implicit none
integer :: %a
a = 1
print *, a
end
$ cat z2.f90
program
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91959
G. Steinmetz changed:
What|Removed |Added
Keywords||accepts-invalid
--- Comment #1 from G. St
ty: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Affects versions down to at least gfortran-5,
with undefined variable j :
$ cat z1.f90
module m
integer :: i, j
integer, parameter ::
: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Starting with gfortran-8 :
$ cat z1.f90
program p
character(3), parameter :: a(4) = 'abc'
integer, parameter :: b(1) = minloc(a)
integer, parameter :: c = min
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Follow-up of pr91943 :
$ cat z1.f90
subroutine sub (f)
integer :: f
print *, f(b'11')
print *, f(o'11')
p
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Errors in z4/z3 are detected, z2 is silently accepted and z1 ICEs :
(also with a(z'1'))
$ cat z4.f90
program p
character, parameter ::
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
With testfiles array_constructor_17.f90 or string_array_constructor_3.f90
from ./gcc/testsuite/gfortran.dg, and with -fcheck=all or -fcheck
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
With following invalid testcases :
$ cat z1.f90
program p
allocate (character(*) :: x)
end
$ cat z2.f90
module m
allocate (character
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83740
--- Comment #2 from G. Steinmetz ---
plain vanilla x86_64 with linux
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
With this testcase :
$ cat z1.f90
program p
real, target :: a
real, pointer, contiguous :: b => a
end
$ gfortran-8-20170924 -c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83740
--- Comment #7 from G. Steinmetz ---
Thanks for working on this issue, Janne. I will check it
and do some more tests with upcoming snapshot 20180114.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83740
--- Comment #8 from G. Steinmetz ---
I can confirm now that the ICE is gone for all relevant test cases.
: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Occurs down to at least gfortran 4.8 :
$ cat z1.f90
program p
type t
character :: c(3) = transfer('abc','z',3)
end type
end
$ gfortran-8-201
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83864
--- Comment #1 from G. Steinmetz ---
Works outside of a type :
$ cat z2.f90
program p
character :: c(3) = transfer('abc','z',3)
print *, c
end
$ gfortran-8-20180114 z2.f90 -static-libgfortran
$ a.out
abc
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Gives an ICE with releases 6, 7, 8 :
$ cat z1.f90
program p
character(:), allocatable :: z(:)
allocate (z, source=[''])
end
$ gfortran-8-20180114 -c z1.f90
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83865
--- Comment #1 from G. Steinmetz ---
A similar pair : ICE with 7/8 for z4.f90, z5.f90 works.
$ cat z4.f90
program p
associate (x => f())
if ( x(1) /= '' ) call abort
end associate
contains
function f() result(z)
character(
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
With a missing comma :
$ cat z1.f90
program p
type t
class(t), pointer :: a
end type
type extends(t) :: t2
end type
end
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71203
G. Steinmetz changed:
What|Removed |Added
CC||gs...@t-online.de
--- Comment #4 from G
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83874
G. Steinmetz changed:
What|Removed |Added
CC||gs...@t-online.de
--- Comment #2 from G
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Down to version 4.9 -- gfortran 4.8 seems to work :
$ cat z1.f90
program p
associate (x => ['1'])
print *, x
end
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83898
--- Comment #1 from G. Steinmetz ---
While this and other variants work :
$ cat z2.f90
program p
associate (x => [1])
print *, x
end associate
end
$ gfortran-8-20180114 z2.f90 -static-libgfortran
$ a.out
1
$
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83900
--- Comment #1 from G. Steinmetz ---
Working variants :
$ cat z2.f90
program p
integer, parameter :: a(3,2) = 1
real :: b(2,3) = 2
print *, matmul(a, b)
end
$ cat z3.f90
program p
integer :: a(3,2) = 1
real :: b(2,3) = 2
p
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Changed between 20171022 and 20171029 :
$ cat z1.f90
program p
integer, parameter :: a(3,2) = 1
real, parameter :: b(2,3) = 2
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gs...@t-online.de
Target Milestone: ---
Since about 20171008, with -fcoarray=single or -fcoarray=lib :
$ cat z1.f90
program p
character(8), allocatable :: x[:]
x =
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67804
G. Steinmetz changed:
What|Removed |Added
CC||gs...@t-online.de
--- Comment #2 from G
301 - 400 of 746 matches
Mail list logo