[Bug fortran/88455] False positive for allocatable character array of deferred length, ALLOCATE using SOURCE/MOLD [-Wuninitialized]

2018-12-11 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88455 --- Comment #2 from Adam Hirst --- Slightly reduced - the issue occurs even in the MAIN program: program test implicit none integer :: a, b, c character(:), allocatable :: line(:) a = 1; b = 10; c = 30 allocat

[Bug fortran/88455] False positive for allocatable character array of deferred length, ALLOCATE using SOURCE/MOLD [-Wuninitialized]

2018-12-11 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88455 --- Comment #1 from Adam Hirst --- I'm not sure whether they're related, but I found a handful of potentially-similar bugs, which might be worth collating here for quicker reference. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28660 https://gcc

[Bug fortran/88455] New: False positive for allocatable character array of deferred length, ALLOCATE using SOURCE/MOLD [-Wuninitialized]

2018-12-11 Thread adam at aphirst dot karoo.co.uk
: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: adam at aphirst dot karoo.co.uk Target Milestone: --- program test implicit none call F(1, 10, 30) contains

[Bug fortran/83927] Type-Bound Procedure on element of Derived Type PARAMETER Array

2018-10-14 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83927 --- Comment #3 from Adam Hirst --- In reference to my initial attachment 43173, and by adding the following annotations: ``` ! case 1 M = v_array_par(1)%MyFunc() print *, M ! case 2 M = v_scalar_par%MyFunc() print *, M ! case 3

[Bug fortran/58750] Wrong code with realloc on assignment and array constructors with numeric type conversion

2018-04-22 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58750 --- Comment #19 from Adam Hirst --- Apologies for the excess traffic. I realised my error soon after posting. I'll try to be patient until I have GCC8 "release" on my system before I follow up any similar issues.

[Bug fortran/58750] Wrong code with realloc on assignment and array constructors with numeric type conversion

2018-04-22 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58750 --- Comment #17 from Adam Hirst --- I'm afraid to say that this issue is, in fact, not solved. [235 7 11 ] 5 [0 ]

[Bug fortran/83927] Type-Bound Procedure on element of Derived Type PARAMETER Array

2018-01-18 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83927 --- Comment #2 from Adam Hirst --- I don't think this is a duplicate of pr59298 because, unlike pr59298, this doesn't cause an ICE.

[Bug fortran/83927] New: Type-Bound Procedure on element of Derived Type PARAMETER Array

2018-01-18 Thread adam at aphirst dot karoo.co.uk
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: adam at aphirst dot karoo.co.uk Target Milestone: --- Created attachment 43173 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43173&action=edit short program demonstrat

[Bug fortran/59298] ICE when initialising PARAMETER array of derived-type (containing an array) using array constructor

2018-01-12 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59298 --- Comment #8 from Adam Hirst --- After another year, the issue still seems present. ICE when compiling the file I attached, and Janus' reduced case. The removal of the parenthesis still has the effect of avoiding the ICE. Using built-in specs

[Bug fortran/79930] Potentially Missed Optimisation for MATMUL / DOT_PRODUCT

2017-03-09 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79930 --- Comment #12 from Adam Hirst --- Created attachment 40940 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40940&action=edit call graph of my "real" application Thanks Thomas, My "real" application is of course not using random numbers f

[Bug target/79946] Suboptimal code with AVX2 copying all arguments to stack

2017-03-07 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79946 --- Comment #2 from Adam Hirst --- Just for clarification: is this only occuring for the case where one does Dx = D%x tmp = matmul(NU,Dx); tensorproduct%x = dot_product(tmp,NV) or is it also applicable to tmp = matmul(NU,D%x);

[Bug fortran/79930] Potentially Missed Optimisation for MATMUL / DOT_PRODUCT

2017-03-06 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79930 --- Comment #8 from Adam Hirst --- Ah, it seems that Jerry was tinkering with tp_array.f90 (intrinsic array version of the Vector type), while I was with tp_xyz.f90 (explicit separate elements). I was going to remark at how he didn't need to use

[Bug fortran/79930] Potentially Missed Optimisation for MATMUL / DOT_PRODUCT

2017-03-06 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79930 --- Comment #7 from Adam Hirst --- OK, I tried a little harder, and was able to get a performance increase. type(Vect3D) pure function TP_LEFT(NU, D, NV) result(tensorproduct) real(dp), intent(in) :: NU(4), NV(4) type(Vect3D), inte

[Bug fortran/79930] Potentially Missed Optimisation for MATMUL / DOT_PRODUCT

2017-03-06 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79930 --- Comment #5 from Adam Hirst --- Hmm, even with -Ofast, I don't get any noticeable performance increase if I change, say, TP_LEFT, to be: type(Vect3D) pure function TP_LEFT(NU, D, NV) result(tensorproduct) real(dp), intent(in) :: NU(

[Bug fortran/79930] Potentially Missed Optimisation for MATMUL / DOT_PRODUCT

2017-03-06 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79930 --- Comment #3 from Adam Hirst --- Created attachment 40898 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40898&action=edit Implementation using dimension(3) member

[Bug fortran/79930] Potentially Missed Optimisation for MATMUL / DOT_PRODUCT

2017-03-06 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79930 --- Comment #2 from Adam Hirst --- Created attachment 40897 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40897&action=edit Implementation using %x %y and %z members Will post the source code here as attachments.

[Bug fortran/79930] New: Potentially Missed Optimisation for MATMUL / DOT_PRODUCT

2017-03-06 Thread adam at aphirst dot karoo.co.uk
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: adam at aphirst dot karoo.co.uk Target Milestone: --- In my codebase I'm performing many "Tensor Products", which is by far the hottest routine. This is something like tp

[Bug fortran/79676] [submodules] Compilation/linking error when module procedures PRIVATE

2017-02-27 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79676 --- Comment #2 from Adam Hirst --- Could this be related? https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52846#c14 > Paul Thomas 2015-07-16 14:52:58 UTC > OK - this compiles and runs if the PRIVATE statement is removed. As soon as I > return to t

[Bug fortran/79676] New: [submodules] Compilation/linking error when module procedures PRIVATE

2017-02-22 Thread adam at aphirst dot karoo.co.uk
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: adam at aphirst dot karoo.co.uk Target Milestone: --- Demonstration code: https://gist.github.com/aphirst/aacfe1eb5eda1151364ddbf2feef5ed3 Build log: http://sprunge.us/iYaP

[Bug fortran/59298] ICE when initialising PARAMETER array of derived-type (containing an array) using array constructor

2016-11-01 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59298 --- Comment #7 from Adam Hirst --- It's been almost a year, and I wanted to confirm that this bug is still present for the test case I attached to the thread, and for Janus' reduced example. Also relevant might be that my comment at 2014-11-12 13

[Bug fortran/58861] Realloc on assignment: Bogus "Array bound mismatch" error with -fcheck=bounds

2016-11-01 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58861 --- Comment #5 from Adam Hirst --- It's been over a year, and I can confirm that this bug is present for all 3 examples in this thread, in the following version: gcc (GCC) 6.2.1 20160830

[Bug fortran/58750] Wrong code with realloc on assignment and array constructors with numeric type conversion

2016-11-01 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58750 --- Comment #11 from Adam Hirst --- It's been almost another year, and I just wanted to confirm that this bug is still present in the following version: GNU Fortran (GCC) 6.2.1 20160830

[Bug fortran/59298] ICE when initialising PARAMETER array of derived-type (containing an array) using array constructor

2015-11-30 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59298 --- Comment #6 from Adam Hirst --- As with another bug I keep in my Bookmarks, I just decided to check this again and it seems that in 5.2.0 we're still getting the same behaviour. $ gfortran -v Using built-in specs. COLLECT_GCC=gfortran COLLECT

[Bug fortran/58750] Wrong code with realloc on assignment and array constructors with numeric type conversion

2015-11-28 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58750 --- Comment #10 from Adam Hirst --- It's been another year, and I would like to confirm that this behaviour is indeed still present for me in 5.2.0, and adding _i8 as Tobias pointed out still does cause correct code to result. $ gfortran -v Usin

[Bug fortran/59298] ICE when initialising PARAMETER array of derived-type (containing an array) using array constructor

2014-11-12 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59298 --- Comment #5 from Adam Hirst --- I decided to check on the status of this bug in 4.9.2, as it's been a little while, and the segmentation fault still occurs. Interestingly, the test case that Janus posted on 2013-01-03 can be made to compile a

[Bug fortran/58750] Wrong code with realloc on assignment and array constructors with numeric type conversion

2014-11-11 Thread adam at aphirst dot karoo.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58750 --- Comment #9 from Adam Hirst --- As it's been over a year since the last update, I just thought I'd ping back with the comment that this bug is still present in 4.9.2.

[Bug fortran/61406] New: ICE on ASSOCIATE construct to literal array expression

2014-06-03 Thread adam at aphirst dot karoo.co.uk
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: adam at aphirst dot karoo.co.uk Created attachment 32885 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32885&action=edit demonstration of ICE for ASSOCIATE with array literal Association of a na

[Bug fortran/58861] Realloc on assignment: Bogus "Array bound mismatch" error with -fcheck=bounds

2014-02-17 Thread adam at aphirst dot karoo.co.uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58861 Adam Hirst changed: What|Removed |Added CC||adam at aphirst dot karoo.co.uk --- Comment

[Bug fortran/59298] ICE when initialising PARAMETER array of derived-type (containing an array) using array constructor

2013-11-26 Thread adam at aphirst dot karoo.co.uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59298 Adam Hirst changed: What|Removed |Added Attachment #31294|0 |1 is obsolete|

[Bug fortran/59298] New: ICE when initialising PARAMETER array of derived-type (containing an array) using array constructor

2013-11-26 Thread adam at aphirst dot karoo.co.uk
Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: adam at aphirst dot karoo.co.uk Created attachment 31294 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31294&action=edit Minimal te