* [Bug fortran/106856] [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977
2022-09-06 17:12 [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 gscfq@t-online.de
@ 2022-09-07 8:26 ` rguenth at gcc dot gnu.org
2022-09-07 12:02 ` [Bug fortran/106856] [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd marxin at gcc dot gnu.org
` (18 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-09-07 8:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106856
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |12.3
Priority|P3 |P4
^ permalink raw reply [flat|nested] 21+ messages in thread
* [Bug fortran/106856] [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd
2022-09-06 17:12 [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 gscfq@t-online.de
2022-09-07 8:26 ` [Bug fortran/106856] " rguenth at gcc dot gnu.org
@ 2022-09-07 12:02 ` marxin at gcc dot gnu.org
2022-09-08 8:52 ` burnus at gcc dot gnu.org
` (17 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-09-07 12:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106856
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[12/13 Regression] ICE in |[12/13 Regression] ICE in
|gfc_conv_expr_present, at |gfc_conv_expr_present, at
|fortran/trans-expr.cc:1977 |fortran/trans-expr.cc:1977
| |since
| |r12-4346-geb92cd57a1ebe7cd
Last reconfirmed| |2022-09-07
Status|UNCONFIRMED |NEW
CC| |burnus at gcc dot gnu.org,
| |marxin at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r12-4346-geb92cd57a1ebe7cd.
^ permalink raw reply [flat|nested] 21+ messages in thread
* [Bug fortran/106856] [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd
2022-09-06 17:12 [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 gscfq@t-online.de
2022-09-07 8:26 ` [Bug fortran/106856] " rguenth at gcc dot gnu.org
2022-09-07 12:02 ` [Bug fortran/106856] [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd marxin at gcc dot gnu.org
@ 2022-09-08 8:52 ` burnus at gcc dot gnu.org
2022-12-06 22:23 ` [Bug fortran/106856] [12/13 Regression][OOP] CLASS attribute handling / " anlauf at gcc dot gnu.org
` (16 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: burnus at gcc dot gnu.org @ 2022-09-08 8:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106856
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Created attachment 53548
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53548&action=edit
draft patch
Draft patch - the actual issue seems to work fine (first testcase, extended) –
however, I have still once ICE and bogus attribute errors (both: second
testcase)
Currently running out of time to work on this → deferred.
^ permalink raw reply [flat|nested] 21+ messages in thread
* [Bug fortran/106856] [12/13 Regression][OOP] CLASS attribute handling / ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd
2022-09-06 17:12 [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 gscfq@t-online.de
` (2 preceding siblings ...)
2022-09-08 8:52 ` burnus at gcc dot gnu.org
@ 2022-12-06 22:23 ` anlauf at gcc dot gnu.org
2023-03-01 21:36 ` anlauf at gcc dot gnu.org
` (15 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: anlauf at gcc dot gnu.org @ 2022-12-06 22:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106856
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gcc dot gnu.org
--- Comment #3 from anlauf at gcc dot gnu.org ---
Created attachment 54030
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54030&action=edit
Incremental patch
The above patch on top of Tobias' initial one fixes some minor issues with
it and improves the behavior for testcase class_75.f90 modified as follows:
! { dg-do compile }
! { dg-additional-options "-fcoarray=single" }
!
! PR fortran/106856
!
!
!
subroutine foo(x,y)
class(*), optional :: x, y
optional :: x ! { dg-error "Duplicate OPTIONAL attribute" }
target :: x
allocatable :: x
target :: x ! { dg-error "Duplicate TARGET attribute" }
allocatable :: x ! { dg-error "Duplicate ALLOCATABLE attribute" }
pointer :: y
contiguous :: y
pointer :: y ! { dg-error "Duplicate POINTER attribute" }
contiguous :: y ! { dg-error "Duplicate CONTIGUOUS attribute" }
dimension :: x(:,:)
dimension :: y(:,:,:)
codimension :: x[:]
! < duplicat error for dimension/codimension: TODO add decl.
! Currently gives an ICE :-(
end
Note that these patches "regress" as follows:
- gfortran.dg/interface_41.f90 - this had a bogus error on valid code!
(Removing the dg-error fixes it.)
- gfortran.dg/pr69398.f90 - this ICEs due to the duplicate DIMENSION attribute
I tried to modify restore_old_symbol() to handle CLASS arrays, but then
we ICE along a different path. Not sure if this is the right approach.
Nevertheless, the patch as is already appears to be a great step forward!
^ permalink raw reply [flat|nested] 21+ messages in thread
* [Bug fortran/106856] [12/13 Regression][OOP] CLASS attribute handling / ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd
2022-09-06 17:12 [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 gscfq@t-online.de
` (3 preceding siblings ...)
2022-12-06 22:23 ` [Bug fortran/106856] [12/13 Regression][OOP] CLASS attribute handling / " anlauf at gcc dot gnu.org
@ 2023-03-01 21:36 ` anlauf at gcc dot gnu.org
2023-03-02 20:51 ` anlauf at gcc dot gnu.org
` (14 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-03-01 21:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106856
--- Comment #4 from anlauf at gcc dot gnu.org ---
Created attachment 54567
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54567&action=edit
Updated patch
The original patches started to bit-rot, so here is an updated version.
The current situation is as follows:
- it fixes a couple of ice-on-valid, ice-on-invalid, rejects-valid cases,
see below
- testcase interface_41.f90 turns out to be actually valid Fortran and is
now correctly accepted (-> testsuite needs adjustment)
- testcase pr69398.f90 ICE's - as expected, see comment in new testcase
class_75.f90. Shall we mark this one as XFAIL for the time being and
reopen pr69398?
- it appears that the following PRs are addressed or fixed with this patch:
pr53951, pr101101, pr104229, pr107380
So applying the patch would be a big achievement over the current situation.
@Thomas: do you think this path should/could be followed?
^ permalink raw reply [flat|nested] 21+ messages in thread
* [Bug fortran/106856] [12/13 Regression][OOP] CLASS attribute handling / ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd
2022-09-06 17:12 [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 gscfq@t-online.de
` (4 preceding siblings ...)
2023-03-01 21:36 ` anlauf at gcc dot gnu.org
@ 2023-03-02 20:51 ` anlauf at gcc dot gnu.org
2023-03-02 22:04 ` anlauf at gcc dot gnu.org
` (13 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-03-02 20:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106856
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot gnu.org
Status|NEW |ASSIGNED
--- Comment #5 from anlauf at gcc dot gnu.org ---
(In reply to anlauf from comment #4)
> - testcase pr69398.f90 ICE's - as expected, see comment in new testcase
> class_75.f90. Shall we mark this one as XFAIL for the time being and
> reopen pr69398?
This intermediate regression appears to result from an invalid double-free.
I plan to package an updated patch for submission.
^ permalink raw reply [flat|nested] 21+ messages in thread
* [Bug fortran/106856] [12/13 Regression][OOP] CLASS attribute handling / ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd
2022-09-06 17:12 [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 gscfq@t-online.de
` (5 preceding siblings ...)
2023-03-02 20:51 ` anlauf at gcc dot gnu.org
@ 2023-03-02 22:04 ` anlauf at gcc dot gnu.org
2023-03-04 15:19 ` anlauf at gcc dot gnu.org
` (12 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-03-02 22:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106856
--- Comment #6 from anlauf at gcc dot gnu.org ---
Submitted: https://gcc.gnu.org/pipermail/fortran/2023-March/059003.html
^ permalink raw reply [flat|nested] 21+ messages in thread
* [Bug fortran/106856] [12/13 Regression][OOP] CLASS attribute handling / ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd
2022-09-06 17:12 [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 gscfq@t-online.de
` (6 preceding siblings ...)
2023-03-02 22:04 ` anlauf at gcc dot gnu.org
@ 2023-03-04 15:19 ` anlauf at gcc dot gnu.org
2023-03-05 20:13 ` cvs-commit at gcc dot gnu.org
` (11 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-03-04 15:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106856
--- Comment #7 from anlauf at gcc dot gnu.org ---
(In reply to anlauf from comment #6)
> Submitted: https://gcc.gnu.org/pipermail/fortran/2023-March/059003.html
As discussed in this thread, this version of the patch works for
subroutine s1 (x)
class(*) :: x
allocatable :: x
dimension :: x(:)
if (allocated (x)) print *, size (x)
end
subroutine s2 (x)
class(*) :: x
allocatable :: x(:)
if (allocated (x)) print *, size (x)
end
but still ICEs for the variations / line permutations
subroutine s3 (x)
class(*) :: x(:)
allocatable :: x
if (allocated (x)) print *, size (x)
end
subroutine s4 (x)
class(*) :: x
dimension :: x(:)
allocatable :: x
if (allocated (x)) print *, size (x)
end
I think Mikael's findings in the thread fix this.
^ permalink raw reply [flat|nested] 21+ messages in thread
* [Bug fortran/106856] [12/13 Regression][OOP] CLASS attribute handling / ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd
2022-09-06 17:12 [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 gscfq@t-online.de
` (7 preceding siblings ...)
2023-03-04 15:19 ` anlauf at gcc dot gnu.org
@ 2023-03-05 20:13 ` cvs-commit at gcc dot gnu.org
2023-03-06 17:08 ` anlauf at gcc dot gnu.org
` (10 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-03-05 20:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106856
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:6aa1f40a3263741d964ef4716e85a0df5cec83b6
commit r13-6497-g6aa1f40a3263741d964ef4716e85a0df5cec83b6
Author: Harald Anlauf <anlauf@gmx.de>
Date: Thu Mar 2 22:37:14 2023 +0100
Fortran: fix CLASS attribute handling [PR106856]
gcc/fortran/ChangeLog:
PR fortran/106856
* class.cc (gfc_build_class_symbol): Handle update of attributes of
existing class container.
(gfc_find_derived_vtab): Fix several memory leaks.
(find_intrinsic_vtab): Ditto.
* decl.cc (attr_decl1): Manage update of symbol attributes from
CLASS attributes.
* primary.cc (gfc_variable_attr): OPTIONAL shall not be taken or
updated from the class container.
* symbol.cc (free_old_symbol): Adjust management of symbol versions
to not prematurely free array specs while working on the declation
of CLASS variables.
gcc/testsuite/ChangeLog:
PR fortran/106856
* gfortran.dg/interface_41.f90: Remove dg-pattern from valid
testcase.
* gfortran.dg/class_74.f90: New test.
* gfortran.dg/class_75.f90: New test.
Co-authored-by: Tobias Burnus <tobias@codesourcery.com>
^ permalink raw reply [flat|nested] 21+ messages in thread
* [Bug fortran/106856] [12/13 Regression][OOP] CLASS attribute handling / ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd
2022-09-06 17:12 [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 gscfq@t-online.de
` (8 preceding siblings ...)
2023-03-05 20:13 ` cvs-commit at gcc dot gnu.org
@ 2023-03-06 17:08 ` anlauf at gcc dot gnu.org
2023-03-06 17:11 ` anlauf at gcc dot gnu.org
` (9 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-03-06 17:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106856
--- Comment #9 from anlauf at gcc dot gnu.org ---
*** Bug 53951 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 21+ messages in thread
* [Bug fortran/106856] [12/13 Regression][OOP] CLASS attribute handling / ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd
2022-09-06 17:12 [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 gscfq@t-online.de
` (9 preceding siblings ...)
2023-03-06 17:08 ` anlauf at gcc dot gnu.org
@ 2023-03-06 17:11 ` anlauf at gcc dot gnu.org
2023-03-06 17:13 ` anlauf at gcc dot gnu.org
` (8 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-03-06 17:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106856
--- Comment #10 from anlauf at gcc dot gnu.org ---
*** Bug 107380 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 21+ messages in thread
* [Bug fortran/106856] [12/13 Regression][OOP] CLASS attribute handling / ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd
2022-09-06 17:12 [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 gscfq@t-online.de
` (10 preceding siblings ...)
2023-03-06 17:11 ` anlauf at gcc dot gnu.org
@ 2023-03-06 17:13 ` anlauf at gcc dot gnu.org
2023-03-06 17:15 ` anlauf at gcc dot gnu.org
` (7 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-03-06 17:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106856
--- Comment #11 from anlauf at gcc dot gnu.org ---
*** Bug 104229 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 21+ messages in thread
* [Bug fortran/106856] [12/13 Regression][OOP] CLASS attribute handling / ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd
2022-09-06 17:12 [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 gscfq@t-online.de
` (11 preceding siblings ...)
2023-03-06 17:13 ` anlauf at gcc dot gnu.org
@ 2023-03-06 17:15 ` anlauf at gcc dot gnu.org
2023-03-06 17:18 ` anlauf at gcc dot gnu.org
` (6 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-03-06 17:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106856
--- Comment #12 from anlauf at gcc dot gnu.org ---
*** Bug 101101 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 21+ messages in thread
* [Bug fortran/106856] [12/13 Regression][OOP] CLASS attribute handling / ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd
2022-09-06 17:12 [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 gscfq@t-online.de
` (12 preceding siblings ...)
2023-03-06 17:15 ` anlauf at gcc dot gnu.org
@ 2023-03-06 17:18 ` anlauf at gcc dot gnu.org
2023-03-06 17:50 ` anlauf at gcc dot gnu.org
` (5 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-03-06 17:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106856
--- Comment #13 from anlauf at gcc dot gnu.org ---
*** Bug 51610 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 21+ messages in thread
* [Bug fortran/106856] [12/13 Regression][OOP] CLASS attribute handling / ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd
2022-09-06 17:12 [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 gscfq@t-online.de
` (13 preceding siblings ...)
2023-03-06 17:18 ` anlauf at gcc dot gnu.org
@ 2023-03-06 17:50 ` anlauf at gcc dot gnu.org
2023-03-26 18:38 ` [Bug fortran/106856] [12 " anlauf at gcc dot gnu.org
` (4 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-03-06 17:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106856
--- Comment #14 from anlauf at gcc dot gnu.org ---
*** Bug 52227 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 21+ messages in thread
* [Bug fortran/106856] [12 Regression][OOP] CLASS attribute handling / ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd
2022-09-06 17:12 [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 gscfq@t-online.de
` (14 preceding siblings ...)
2023-03-06 17:50 ` anlauf at gcc dot gnu.org
@ 2023-03-26 18:38 ` anlauf at gcc dot gnu.org
2023-03-27 18:43 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-03-26 18:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106856
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[12/13 Regression][OOP] |[12 Regression][OOP] CLASS
|CLASS attribute handling / |attribute handling / ICE in
|ICE in |gfc_conv_expr_present, at
|gfc_conv_expr_present, at |fortran/trans-expr.cc:1977
|fortran/trans-expr.cc:1977 |since
|since |r12-4346-geb92cd57a1ebe7cd
|r12-4346-geb92cd57a1ebe7cd |
--- Comment #15 from anlauf at gcc dot gnu.org ---
Fixed for gcc-13 so far.
I'll have a look at whether this is backportable to 12-branch.
There is at least a dependency on a part of the fix for pr102331 (r13-4934).
^ permalink raw reply [flat|nested] 21+ messages in thread
* [Bug fortran/106856] [12 Regression][OOP] CLASS attribute handling / ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd
2022-09-06 17:12 [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 gscfq@t-online.de
` (15 preceding siblings ...)
2023-03-26 18:38 ` [Bug fortran/106856] [12 " anlauf at gcc dot gnu.org
@ 2023-03-27 18:43 ` cvs-commit at gcc dot gnu.org
2023-03-27 18:47 ` anlauf at gcc dot gnu.org
` (2 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-03-27 18:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106856
--- Comment #16 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:4f41c4ff250709219a7c3eba27a62f8a4689412b
commit r12-9322-g4f41c4ff250709219a7c3eba27a62f8a4689412b
Author: Harald Anlauf <anlauf@gmx.de>
Date: Thu Mar 2 22:37:14 2023 +0100
Fortran: fix CLASS attribute handling [PR106856]
gcc/fortran/ChangeLog:
PR fortran/106856
* class.cc (gfc_build_class_symbol): Handle update of attributes of
existing class container.
(gfc_find_derived_vtab): Fix several memory leaks.
(find_intrinsic_vtab): Ditto.
* decl.cc (attr_decl1): Manage update of symbol attributes from
CLASS attributes.
* primary.cc (gfc_variable_attr): OPTIONAL shall not be taken or
updated from the class container.
* symbol.cc (free_old_symbol): Adjust management of symbol versions
to not prematurely free array specs while working on the declation
of CLASS variables.
gcc/testsuite/ChangeLog:
PR fortran/106856
* gfortran.dg/interface_41.f90: Remove dg-pattern from valid
testcase.
* gfortran.dg/class_74.f90: New test.
* gfortran.dg/class_75.f90: New test.
Co-authored-by: Tobias Burnus <tobias@codesourcery.com>
(cherry picked from commit 6aa1f40a3263741d964ef4716e85a0df5cec83b6)
^ permalink raw reply [flat|nested] 21+ messages in thread
* [Bug fortran/106856] [12 Regression][OOP] CLASS attribute handling / ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd
2022-09-06 17:12 [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 gscfq@t-online.de
` (16 preceding siblings ...)
2023-03-27 18:43 ` cvs-commit at gcc dot gnu.org
@ 2023-03-27 18:47 ` anlauf at gcc dot gnu.org
2023-04-08 18:48 ` anlauf at gcc dot gnu.org
2023-11-25 19:06 ` anlauf at gcc dot gnu.org
19 siblings, 0 replies; 21+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-03-27 18:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106856
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #17 from anlauf at gcc dot gnu.org ---
There was another trivial dependency on the (simple) fix for pr108025.
Backported to 12-branch. Closing.
Thanks for the report!
^ permalink raw reply [flat|nested] 21+ messages in thread
* [Bug fortran/106856] [12 Regression][OOP] CLASS attribute handling / ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd
2022-09-06 17:12 [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 gscfq@t-online.de
` (17 preceding siblings ...)
2023-03-27 18:47 ` anlauf at gcc dot gnu.org
@ 2023-04-08 18:48 ` anlauf at gcc dot gnu.org
2023-11-25 19:06 ` anlauf at gcc dot gnu.org
19 siblings, 0 replies; 21+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-04-08 18:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106856
--- Comment #18 from anlauf at gcc dot gnu.org ---
*** Bug 96084 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 21+ messages in thread
* [Bug fortran/106856] [12 Regression][OOP] CLASS attribute handling / ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd
2022-09-06 17:12 [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 gscfq@t-online.de
` (18 preceding siblings ...)
2023-04-08 18:48 ` anlauf at gcc dot gnu.org
@ 2023-11-25 19:06 ` anlauf at gcc dot gnu.org
19 siblings, 0 replies; 21+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-11-25 19:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106856
--- Comment #19 from anlauf at gcc dot gnu.org ---
*** Bug 96655 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 21+ messages in thread