[Bug fortran/80120] New: Incorrect error with associate construct and character array (regression)

2017-03-20 Thread mrestelli at gmail dot com
: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Target Milestone: --- Recent gfortran does not compile the following valid code: program p implicit none type :: t character(len=25) :: text

[Bug fortran/80118] New: ICE with zero size parameter array

2017-03-20 Thread mrestelli at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Target Milestone: --- The following code produces an internal compiler error when referring to "empty2". module m implicit none integer, parameter :: not_empty(1) = 0 integer, parameter :

[Bug fortran/77649] New: Wrong error reported with bound checking enabled

2016-09-19 Thread mrestelli at gmail dot com
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Target Milestone: --- When compiled with -fcheck=all the following code produces an incorrect error at runtime: $ gfortran test.f90 -fcheck=all -o test $ ./test At line 13 of file test.f90

[Bug fortran/77643] New: ICE with "character(len=:), pointer :: p => null()"

2016-09-19 Thread mrestelli at gmail dot com
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Target Milestone: --- The attached code produces an internal compiler error. It seems that, in order to trigger the error, both LEN=: and =>NULL() are necessary. mo

[Bug fortran/62125] Nested select type not accepted (rejects valid)

2016-07-12 Thread mrestelli at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62125 --- Comment #9 from mrestelli --- Here is a test; should compile and run without errors. module m implicit none type, abstract :: t1 logical :: l end type t1 type, extends(t1), abstract :: t2 integer :: i end type t2 type, extends(t2)

[Bug fortran/62125] Nested select type not accepted (rejects valid)

2016-07-12 Thread mrestelli at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62125 --- Comment #7 from mrestelli --- (In reply to Jerry DeLisle from comment #6) > I tested the patch. No regressions. Works as advertised. > > I will submit the patch for approval and see if we can commit it. > > Thanks! :-) (first time I try t

[Bug fortran/62125] Nested select type not accepted (rejects valid)

2016-07-11 Thread mrestelli at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62125 --- Comment #5 from mrestelli --- I think the following patch could solve the problem: Index: gcc/fortran/symbol.c === --- gcc/fortran/symbol.c(revision 238083) +++ gcc/for

[Bug fortran/71565] New: INTENT(IN) polymorphic argument with pointer components - reject valid code

2016-06-17 Thread mrestelli at gmail dot com
: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Target Milestone: --- (This was also discussed on comp.lang.fortran: https://groups.google.com/forum/#!topic/comp.lang.fortran/dPaOv53SGeA

[Bug fortran/71047] New: Allocatable component of INTENT(OUT) dummy not set correctly

2016-05-10 Thread mrestelli at gmail dot com
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Target Milestone: --- When compiled with gfortran, the attached code, which is correct as far as I can tell, produces an error at runtime: $ ./test At line 20

[Bug fortran/71023] New: Problem with associate and function returning derived type

2016-05-09 Thread mrestelli at gmail dot com
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Target Milestone: --- gfortran does not compile the following valid code: module m implicit none type :: t integer :: i end type t contains pure

[Bug fortran/70953] New: Reallocation on assignment does not work with debug flags

2016-05-04 Thread mrestelli at gmail dot com
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Target Milestone: --- The attached code produces a runtime error when compiled with some debug flags (see later). The code however is correct: the dimension

[Bug fortran/69955] Memory leak with array constructor and derived type

2016-02-25 Thread mrestelli at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69955 --- Comment #4 from mrestelli --- My problem also shows up at runtime, compilation is fine.

[Bug fortran/69955] New: Memory leak with array constructor and derived type

2016-02-25 Thread mrestelli at gmail dot com
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Target Milestone: --- The attached code leaks memory for me: $ gfortran --version GNU Fortran (GCC) 6.0.0 20160224 (experimental) program p implicit none type :: t1 real, allocatable

[Bug fortran/69742] ICE with -O3 and ASSOCIATE containing repeated expression

2016-02-10 Thread mrestelli at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69742 --- Comment #2 from mrestelli --- (In reply to Thomas Koenig from comment #1) > What happens if you run it with > > gfortran -ffrontend-optimize Same ICE > and with > > gfortran -O3 -fno-frontend-optimize ? Works correctly

[Bug fortran/69742] New: ICE with -O3 and ASSOCIATE containing repeated expression

2016-02-10 Thread mrestelli at gmail dot com
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Target Milestone: --- This code produces and internal compiler error when compiled with -O3. It seems that the problem is the appearance of the same expression

[Bug fortran/69514] New: ICE with nested array constructor

2016-01-27 Thread mrestelli at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Target Milestone: --- The attached code produces an internal compiler error. Notice that the problem disappears removing the multiplication 3.0_wp* . program p implicit none integer, parameter :: wp

[Bug fortran/69409] New: Internal compiler error with -fcheck=all

2016-01-21 Thread mrestelli at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Target Milestone: --- Compiling the attached code with the latest trunk version and using -fcheck=all produces an internal compiler error: module m implicit none private type :: t_a real

[Bug fortran/69296] Problem with associate and vector subscript

2016-01-15 Thread mrestelli at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69296 --- Comment #1 from mrestelli --- I should also mention that this happens for me with GNU Fortran (GCC) 6.0.0 20160112 (experimental)

[Bug fortran/69296] New: Problem with associate and vector subscript

2016-01-15 Thread mrestelli at gmail dot com
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Target Milestone: --- The attached code, when compiled with gfortran, prints shape: 2 and then crashes printing "ai". The same code compiled with ifort shows what I thing is the correct

[Bug fortran/67539] New: Segmentation fault with elemental defined assignment and scalar function at the RHS

2015-09-10 Thread mrestelli at gmail dot com
Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Target Milestone: --- The attached code produces a segmentation fault: $ gfortran --version GNU Fortran (GCC) 6.0.0 20150910

[Bug fortran/67538] New: ICE with invalid source allocation

2015-09-10 Thread mrestelli at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Target Milestone: --- The following code is invalid since the array dimension is missing, but since it is an ICE I am reporting it. $ gfortran --version GNU Fortran (GCC) 6.0.0 20150910 (experimental

[Bug fortran/67528] New: Wrong result with defined assignment operator and/or parenthesized expressions and allocatable components

2015-09-09 Thread mrestelli at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Target Milestone: --- As discussed in https://groups.google.com/d/msg/comp.lang.fortran/8q2nYfHnZfU/M9FmGgx7AQAJ

[Bug fortran/67125] New: Incorrect bounds with source allocation, source=

2015-08-05 Thread mrestelli at gmail dot com
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Target Milestone: --- The following code prints 0 2 while I think the correct result should be 1 3 (using gfortran 6.0.0): program p implicit none integer, allocatable

[Bug fortran/67123] New: ICE with source allocation

2015-08-05 Thread mrestelli at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Target Milestone: --- The following code produces an internal compiler error with gfortran-6.0.0 (works with 5.1.0): module m implicit none public type :: ta end type ta contains subroutine sub() type(ta

[Bug fortran/67044] New: ICE on valid code

2015-07-28 Thread mrestelli at gmail dot com
: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Target Milestone: --- I see and ICE with the attached code. $ gfortran -c ice.f90 ice.f90:44:0: allocate( z%f , source=unpck(x)+unpck(y) ) ^ internal compiler error: in aggregate_value_p, bei function.c:2052 0x819313

[Bug fortran/66907] New: Correct code produces "Segmentation fault - invalid memory reference"

2015-07-17 Thread mrestelli at gmail dot com
ty: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Target Milestone: --- The attached code compiles with gfortran and produces an error at runtime. As far as I can see, the code is correct. Unf

[Bug fortran/63867] LEN is lost for a CHARACTER variable inside SELECT TYPE

2014-11-14 Thread mrestelli at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63867 --- Comment #1 from mrestelli --- Also, I should add that changing type is(character(len=*)) to type is(character(len=:)) given an internal compiler error (anyway, the code then is invalid) Marco

[Bug fortran/63867] New: LEN is lost for a CHARACTER variable inside SELECT TYPE

2014-11-14 Thread mrestelli at gmail dot com
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Consider the following code: program p implicit none character(len=5) :: str str = 'abcde' call checklen1(str) call checklen2(str) contains

[Bug fortran/62125] Nested select type not accepted (rejects valid)

2014-08-14 Thread mrestelli at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62125 --- Comment #2 from mrestelli --- I can not say 100% that the code is correct, but at least reading 8.6 "The SELECT TYPE Construct" of "The Fortran 2003 Handbook" I don't see why it shouldn't. Notice that: among rules and restrictions, 1. says

[Bug fortran/62125] New: Nested select type not accepted (rejects valid)

2014-08-13 Thread mrestelli at gmail dot com
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Hi, I see that gfortran does not compile the attached code, which seems fine to me. $ gfortran -c test.f90 -o test.o test.f90:31.21: write(*,*) u%x 1 Error

[Bug fortran/61527] class/extends, multiple generic assignment, accept invalid

2014-06-16 Thread mrestelli at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61527 --- Comment #2 from mrestelli --- I am no expert, but I think that the correct behaviour is that of the older version: the two interfaces indeed are ambiguous, since a call like type(t2) :: b call disp(b) could call both disp1 and disp2.

[Bug fortran/61527] New: class/extends, multiple generic assignment, accept invalid

2014-06-16 Thread mrestelli at gmail dot com
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Hi, I see that gfortran accepts the following code (even with strict debug flags) which is ambiguous in the resolution of the generic. The code is correctly

[Bug fortran/61284] New: non_overridable produces segmentation fault

2014-05-22 Thread mrestelli at gmail dot com
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com The attached code produces a segmentation fault when including the non_overridable attribute in t2. $ gfortran --version GNU Fortran (GCC) 4.10.0 20140508 (experimental) $ ./bhg Program

[Bug fortran/61179] Can not compile "type is(double complex)"

2014-05-13 Thread mrestelli at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61179 --- Comment #1 from mrestelli --- I see now that "DOUBLE COMPLEX" is not specified by the standard, which rather says "There is no keyword for double precision complex." And in fact for a different code I see that gfortran indicates it as GNU ex

[Bug fortran/61179] New: Can not compile "type is(double complex)"

2014-05-13 Thread mrestelli at gmail dot com
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Hi, I can not compile the following (legal, I think) code: module m implicit none contains subroutine test(x) class(*), intent(in) :: x select type(x) type is(complex)

[Bug fortran/61115] New: ICE with type bound proc => non_overridable type bound proc

2014-05-08 Thread mrestelli at gmail dot com
mal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com The attached (valid, I think) code produces an internal compiler error. The NON_OVERRIDABLE attribute is required to produce the error. $ gfortran -c m.

[Bug fortran/60560] New: Problem allocating character array with assumed length

2014-03-18 Thread mrestelli at gmail dot com
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com The following code does not compile with gfortran (either 4.7.3 or trunk). My understanding is that the code is legal but gfortran is confused by the fact that: s_tmp takes its length

[Bug fortran/59806] New: ICE with -ggdb AND -finit-real=snan AND namelist variable AND internal procedure

2014-01-14 Thread mrestelli at gmail dot com
Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Hi all, the attached code results in an internal compiler error when compiled with gfortran -ggdb -finit-real=snan -c ice.f90 Removing

[Bug fortran/59411] Problem with TYPE(C_PTR) constant initialization

2013-12-09 Thread mrestelli at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59411 --- Comment #4 from mrestelli --- (In reply to janus from comment #1) > (In reply to mrestelli from comment #0) > > > > type(c_ptr), parameter :: p2 = pp > >1 > > Error: non-constant initialization expression at (

[Bug fortran/59411] New: Problem with TYPE(C_PTR) constant initialization

2013-12-06 Thread mrestelli at gmail dot com
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mrestelli at gmail dot com Hi all, the attached code does not compile: gfortran -c cst.f90 cst.f90:6.31: type(c_ptr), parameter :: p2 = pp 1 Error: non-constant initialization

[Bug fortran/46271] [F03] OpenMP default(none) and procedure pointers

2013-08-12 Thread mrestelli at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46271 --- Comment #5 from mrestelli --- (In reply to janus from comment #3) > (In reply to mrestelli from comment #0) > > With version B: > > gfortran -fopenmp omp_test.f90 -o omp_test > > omp_test.f90: In function ‘test’: > > omp_test.f90:25:0: error:

[Bug fortran/56823] New: Problem with: interface block dummy argument + procedure pointer actual argument

2013-04-03 Thread mrestelli at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56823 Bug #: 56823 Summary: Problem with: interface block dummy argument + procedure pointer actual argument Classification: Unclassified Product: gcc Version: fortran-dev

[Bug fortran/56691] New: Allocatable array of extended type, wrong indexes after passing to a subroutine

2013-03-22 Thread mrestelli at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56691 Bug #: 56691 Summary: Allocatable array of extended type, wrong indexes after passing to a subroutine Classification: Unclassified Product: gcc Version: fortran-dev

[Bug fortran/55057] New: [OOP] wrong result with abstract type

2012-10-24 Thread mrestelli at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55057 Bug #: 55057 Summary: [OOP] wrong result with abstract type Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal P

[Bug fortran/55037] New: I.C.E. with local allocatable variable of abstract type

2012-10-23 Thread mrestelli at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55037 Bug #: 55037 Summary: I.C.E. with local allocatable variable of abstract type Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED

[Bug fortran/51160] New: Memory leak with abstract type

2011-11-16 Thread mrestelli at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51160 Bug #: 51160 Summary: Memory leak with abstract type Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug fortran/46271] New: OpenMP default(none) and procedure pointers

2010-11-02 Thread mrestelli at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46271 Summary: OpenMP default(none) and procedure pointers Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unas

[Bug fortran/45366] New: Problem with abstract interface to PURE function

2010-08-21 Thread mrestelli at gmail dot com
t: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mrestelli at gmail dot com GCC build triplet: GNU Fortran (GCC) 4.6.0 20100821 (experimental) GCC host triplet: AMD Turion(tm) 64 Mobile Technology ML-32 AuthenticAMD GNU/Linux http://g

[Bug fortran/44446] New: Error with protected pocedure pointer

2010-06-07 Thread mrestelli at gmail dot com
CONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mrestelli at gmail dot com GCC host triplet: x86_64 AMD Turion(tm) 64 Mobile Technology http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6

[Bug fortran/42922] New: Wrongly rejected derived types with default initializers in PURE procedures 2

2010-02-01 Thread mrestelli at gmail dot com
in PURE procedures 2 Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mrestelli at gmail dot com GCC build triplet

[Bug fortran/40850] double free in nested types with allocatable components

2010-01-29 Thread mrestelli at gmail dot com
--- Comment #7 from mrestelli at gmail dot com 2010-01-29 18:24 --- (In reply to comment #5) > Further reduced test case: > > > type t > integer, allocatable :: d(:) > end type > type(t), allocatable :: a(:) > > allocate(a(2)) > cal

[Bug fortran/42597] New: ICE with procedure pointer initialized to null()

2010-01-03 Thread mrestelli at gmail dot com
org ReportedBy: mrestelli at gmail dot com GCC build triplet: GNU Fortran (GCC) 4.5.0 20091229 (experimental) GCC host triplet: Linux 2.6.27-gentoo-r8 x86_64 AMD Turion(tm) 64 Mobile Technolog http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42597

[Bug fortran/40850] "double free or corruption" returning derived types with allocatable components

2009-11-27 Thread mrestelli at gmail dot com
--- Comment #3 from mrestelli at gmail dot com 2009-11-27 14:45 --- (In reply to comment #2) > > *** This bug has been marked as a duplicate of 41777 *** > Sorry! I hit something accidentally on my keyboard, I didn't mean marking this bug as a duplicate at all

[Bug fortran/40850] "double free or corruption" returning derived types with allocatable components

2009-11-27 Thread mrestelli at gmail dot com
--- Comment #2 from mrestelli at gmail dot com 2009-11-27 14:28 --- *** This bug has been marked as a duplicate of 41777 *** -- mrestelli at gmail dot com changed: What|Removed |Added

[Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function

2009-11-27 Thread mrestelli at gmail dot com
--- Comment #17 from mrestelli at gmail dot com 2009-11-27 14:28 --- *** Bug 40850 has been marked as a duplicate of this bug. *** -- mrestelli at gmail dot com changed: What|Removed |Added

[Bug fortran/42112] New: overloaded function with allocatable result problem

2009-11-19 Thread mrestelli at gmail dot com
MED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mrestelli at gmail dot com GCC host triplet: Linux 2.6.27-gentoo-r8 x86_64 AMD Turion(tm) GCC target triplet: GNU Fortran (GCC) 4.5.0

[Bug fortran/42016] New: default initialization of derived type component not allowed in pure subroutine

2009-11-12 Thread mrestelli at gmail dot com
4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mrestelli at gmail dot com GCC build triplet: GNU Fortran (GCC) 4.5.0 20091105 (experimental) GCC host triplet:

[Bug fortran/40850] New: "double free or corruption" returning derived types with allocatable components

2009-07-24 Thread mrestelli at gmail dot com
dBy: mrestelli at gmail dot com GCC build triplet: gcc version 4.5.0 20090724 GCC host triplet: Linux 2.6.27-gentoo-r8 x86_64 AMD GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40850

[Bug fortran/40796] New: *** glibc detected *** double free or corruption (fasttop) with derived types with allocatable components

2009-07-18 Thread mrestelli at gmail dot com
Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mrestelli at gmail dot com GCC build triplet: Configured with: .configure --enable-languages=c,fortran --enabl GCC host triplet: gcc version 4.5.0 20090717