[Bug fortran/82996] ICE and segfault with derived type finalization

2017-11-14 Thread neil.n.carlson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82996 --- Comment #2 from neil.n.carlson at gmail dot com --- In the final example I drop the elemental attribute from the FOO final procedure and modify the BAR final procedure to loop over the elements of its B array component. This too yields

[Bug fortran/82996] ICE and segfault with derived type finalization

2017-11-14 Thread neil.n.carlson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82996 --- Comment #1 from neil.n.carlson at gmail dot com --- In the second example, I add a final procedure for BAR (not necessary) and explicitly call the FOO final procedure on its B component. This gives an ICE f951: internal compiler error

[Bug fortran/82996] New: ICE and segfault with derived type finalization

2017-11-14 Thread neil.n.carlson at gmail dot com
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: neil.n.carlson at gmail dot com Target Milestone: --- I'm going to give 3 examples. The first gives a spurious run time segfault. The others are attempts to work around the problem, but give an internal compiler error

[Bug fortran/79072] ICE with class(*) pointer function result and character value

2017-08-12 Thread neil.n.carlson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79072 --- Comment #8 from neil.n.carlson at gmail dot com --- Ping. Is there any interest in fixing this regression?

[Bug fortran/79072] ICE with class(*) pointer function result and character value

2017-05-07 Thread neil.n.carlson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79072 neil.n.carlson at gmail dot com changed: What|Removed |Added Known to fail||7.1.0 --- Comment #6

[Bug fortran/79072] ICE with class(*) pointer function result and character value

2017-01-13 Thread neil.n.carlson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79072 --- Comment #5 from neil.n.carlson at gmail dot com --- Here's a more complete example that avoids the ICE. It gives correct results with 6.3: 5 fubar 5 fubar But incorrect results with 7.0: 5 fubar 0

[Bug fortran/79072] [5/6/7 Regression] ICE with class(*) pointer function result and character value

2017-01-13 Thread neil.n.carlson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79072 --- Comment #3 from neil.n.carlson at gmail dot com --- Why is this tagged with 'ice-on-invalid-code'? What is invalid about the code?

[Bug fortran/79072] New: ICE with class(*) pointer function result and character value

2017-01-12 Thread neil.n.carlson at gmail dot com
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: neil.n.carlson at gmail dot com Target Milestone: --- This example gives an ICE with the current 7.0 trunk and all 6.x releases: function foo() class(*), pointer :: foo character(3

[Bug fortran/67564] Segfault on sourced allocattion statement with class(*) arrays

2016-09-06 Thread neil.n.carlson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67564 --- Comment #11 from neil.n.carlson at gmail dot com --- Ping

[Bug fortran/77310] New: ICE on SELECT CASE with associate name

2016-08-21 Thread neil.n.carlson at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: neil.n.carlson at gmail dot com Target Milestone: --- The following example triggers an ICE with gfortran 6.1.0: subroutine ice_example type :: inner integer :: n end type type :: outer type(inner), allocatable

[Bug fortran/67564] Segfault on sourced allocattion statement with class(*) arrays

2016-03-21 Thread neil.n.carlson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67564 --- Comment #10 from neil.n.carlson at gmail dot com --- Here's another example, but in this case the bad, source-allocated class(*) variable is just a local variable. It is rank-2 however. character(:), allocatable :: array(:,:) array

[Bug fortran/67564] Segfault on sourced allocattion statement with class(*) arrays

2016-03-20 Thread neil.n.carlson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67564 --- Comment #9 from neil.n.carlson at gmail dot com --- I confirm that my original example now runs without error with the current 6-branch. However this variation, where the allocated unlimited polymorphic variable is passed back as a return

[Bug fortran/70312] Spurious -Wsurprising warnings for final subroutines

2016-03-19 Thread neil.n.carlson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70312 neil.n.carlson at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug fortran/58175] [OOP] Incorrect warning message on scalar finalizer

2016-03-19 Thread neil.n.carlson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58175 neil.n.carlson at gmail dot com changed: What|Removed |Added CC||neil.n.carlson at gmail

[Bug fortran/70312] New: Spurious -Wsurprising warnings for final subroutines

2016-03-19 Thread neil.n.carlson at gmail dot com
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: neil.n.carlson at gmail dot com Target Milestone: --- -Wsurprising issues spurious warnings about final procedures. module foo_type type foo contains final :: foo_delete end type contains subroutine

[Bug fortran/69563] New: Generic TBP incorrectly resolves to elemental

2016-01-29 Thread neil.n.carlson at gmail dot com
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: neil.n.carlson at gmail dot com Target Milestone: --- In the following example program the call to X%SUB should resolve to SUB_ARRAY, but instead the compiler tries to resolve it to the elemental SUB_ELEM, but then emits

[Bug fortran/54070] [4.9/5 Regression] Wrong code with allocatable deferred-length (array) function results

2016-01-18 Thread neil.n.carlson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54070 --- Comment #30 from neil.n.carlson at gmail dot com --- Paul, you've done a lot of great work here (a huge thanks!) and I can confirm that many of my deferred-length character issues seem to be resolved now with the trunk (r232457, 1/15/2016

[Bug fortran/54070] [4.9/5 Regression] Wrong code with allocatable deferred-length (array) function results

2016-01-18 Thread neil.n.carlson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54070 --- Comment #31 from neil.n.carlson at gmail dot com --- Sorry, ignore the example of comment 30. I had already reported this in PR 67564 (not a duplicate of this one). I'm getting old ...

[Bug fortran/66577] ICE in generate_finalization_wrapper, at fortran/class.c:1567

2015-11-08 Thread neil.n.carlson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66577 --- Comment #5 from neil.n.carlson at gmail dot com --- > Error: Function result 'intsuccess' at (1) cannot have an initializer > I don't understand. C506 -- the type specification for a function result cannot have an initialization.

[Bug fortran/66577] ICE in generate_finalization_wrapper, at fortran/class.c:1567

2015-11-07 Thread neil.n.carlson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66577 neil.n.carlson at gmail dot com changed: What|Removed |Added CC||neil.n.carlson at gmail

[Bug fortran/68216] [F2003] IO problem with allocatable, deferred character length arrays

2015-11-06 Thread neil.n.carlson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68216 --- Comment #5 from neil.n.carlson at gmail dot com --- Paul, I'm delighted than someone is finally working on this long-standing problem. I hope you're also taking a look at all the other related PRs that Dominique pointed out; I suspect

[Bug fortran/68174] New: Length parameter in character allocation not recognized as a scalar (regression from 5.2)

2015-11-01 Thread neil.n.carlson at gmail dot com
Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: neil.n.carlson at gmail dot com Target Milestone: --- The following example is rejected by 6.0.0 20151025, but is accepted by 6.0.0 20150906 and 5.2.0

[Bug fortran/54070] [4.9/5/6 Regression] Wrong code with allocatable deferred-length (array) function results

2015-11-01 Thread neil.n.carlson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54070 neil.n.carlson at gmail dot com changed: What|Removed |Added CC||neil.n.carlson at gmail

[Bug fortran/54070] [4.9/5/6 Regression] Wrong code with allocatable deferred-length (array) function results

2015-11-01 Thread neil.n.carlson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54070 --- Comment #23 from neil.n.carlson at gmail dot com --- Here's an even simpler example with the deferred length character array as a local variable -- not a function result or dummy argument. Sure seems as though the allocate statement itself

[Bug fortran/67564] New: Segfault on sourced allocattion statement with class(*) arrays

2015-09-13 Thread neil.n.carlson at gmail dot com
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: neil.n.carlson at gmail dot com Target Milestone: --- The following example segfaults on the allocate statement. Using the trunk version of 20150906. program main type :: any_vector

[Bug fortran/67560] New: False positive with -fcheck=recursion

2015-09-12 Thread neil.n.carlson at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: neil.n.carlson at gmail dot com Target Milestone: --- The following example produces a runtime recursion error during finalization with -fcheck=recursion. There is indeed recursion, but the final subroutine is declared recursive

[Bug fortran/67562] New: Bad result from sourced allocation with class(*) arrays

2015-09-12 Thread neil.n.carlson at gmail dot com
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: neil.n.carlson at gmail dot com Target Milestone: --- The following example produces incorrect results from the sourced allocation involving class(*) arrays. Perhaps the same as 64692

[Bug fortran/67562] Bad result from sourced allocation with class(*) arrays

2015-09-12 Thread neil.n.carlson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67562 --- Comment #2 from neil.n.carlson at gmail dot com --- Please pardon my ignorance (I rarely use gfortran), but is there a 6.0 source distribution somewhere? The latest I can find is 5.2. Are you talking about the current trunk? I'm puzzled

[Bug fortran/49213] [OOP] gfortran rejects structure constructor expression

2011-06-16 Thread neil.n.carlson at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49213 --- Comment #3 from neil.n.carlson at gmail dot com 2011-06-16 20:35:48 UTC --- (In reply to comment #1) Note: Intrinsic assignments to polymorphic variables are forbidden [...] This was really about the structure constructor; the assignment

[Bug fortran/49213] [OOP] gfortran rejects structure constructor expression

2011-06-16 Thread neil.n.carlson at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49213 --- Comment #4 from neil.n.carlson at gmail dot com 2011-06-16 20:49:32 UTC --- An intuitive way of viewing (and maybe even implementing I guess) the process triggered by a structure constructor is as a sequence of assignment statements

[Bug fortran/49213] [OOP] gfortran rejects structure constructor expression

2011-06-16 Thread neil.n.carlson at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49213 --- Comment #6 from neil.n.carlson at gmail dot com 2011-06-16 22:12:17 UTC --- (In reply to comment #5) (In reply to comment #4) An intuitive way of viewing (and maybe even implementing I guess) the process triggered by a structure

[Bug fortran/49213] [OOP] gfortran rejects structure constructor expression

2011-06-16 Thread neil.n.carlson at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49213 --- Comment #7 from neil.n.carlson at gmail dot com 2011-06-16 22:18:14 UTC --- I want to emphasize again that the error I wanted to report was that gfortran is rejecting valid structure constructor expressions (see comment 3). It looks from you

[Bug fortran/49213] New: [OOP] gfortran rejects structure constructor expression

2011-05-28 Thread neil.n.carlson at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49213 Summary: [OOP] gfortran rejects structure constructor expression Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: major Priority: P3 Component:

[Bug fortran/45786] Relational operators .eq. and == are not recognized as equivalent

2011-05-28 Thread neil.n.carlson at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45786 --- Comment #7 from neil.n.carlson at gmail dot com 2011-05-28 18:14:04 UTC --- So what is the status of this defect? It would appear to be will not fix.

[Bug fortran/45794] New: internal compiler error: Segmentation fault

2010-09-25 Thread neil.n.carlson at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45794 Summary: internal compiler error: Segmentation fault Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo:

[Bug fortran/45786] New: Relational operators .eq. and == are not recognized as equivalent

2010-09-24 Thread neil.n.carlson at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45786 Summary: Relational operators .eq. and == are not recognized as equivalent Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug fortran/45786] Relational operators .eq. and == are not recognized as equivalent

2010-09-24 Thread neil.n.carlson at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45786 --- Comment #2 from neil.n.carlson at gmail dot com 2010-09-25 00:27:24 UTC --- Note also that the problem isn't restricted to .eq./== ; it appears to occur with all the other pairs of equivalent operators: .ne./!=, .lt./, etc. At least

<    1   2