[Bug fortran/38205] Tranformational function SUM rejected in initialization expressions

2013-06-25 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38205 Bug 38205 depends on bug 29962, which changed state. Bug 29962 Summary: Initialization expressions http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29962 What|Removed |Added

[Bug fortran/38205] Tranformational function SUM rejected in initialization expressions

2009-03-23 Thread dfranke at gcc dot gnu dot org
--- Comment #8 from dfranke at gcc dot gnu dot org 2009-03-23 19:56 --- *** This bug has been marked as a duplicate of 29962 *** -- dfranke at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/38205] Tranformational function SUM rejected in initialization expressions

2008-12-09 Thread dfranke at gcc dot gnu dot org
--- Comment #7 from dfranke at gcc dot gnu dot org 2008-12-09 21:51 --- Close as dupe of PR29962? -- dfranke at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/38205] Tranformational function SUM rejected in initialization expressions

2008-11-26 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2008-11-26 13:50 --- I think that patch is not enough (though useful!). I think one needs to add a gfc_simplify_sum to simplify.c and replace then the NULL by the function name in intrinsic.c for sum. Possibly as well for the other

[Bug fortran/38205] Tranformational function SUM rejected in initialization expressions

2008-11-26 Thread mikael at gcc dot gnu dot org
--- Comment #3 from mikael at gcc dot gnu dot org 2008-11-26 12:13 --- confirmed -- mikael at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/38205] Tranformational function SUM rejected in initialization expressions

2008-11-26 Thread mikael at gcc dot gnu dot org
--- Comment #2 from mikael at gcc dot gnu dot org 2008-11-26 12:13 --- Created an attachment (id=16775) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16775action=view) untested fix This is probably the way to go. A warning should be added in some cases (didn't think much about

[Bug fortran/38205] Tranformational function SUM rejected in initialization expressions

2008-11-26 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2008-11-26 16:52 --- I think that patch is not enough (though useful!). I think one needs to add a gfc_simplify_sum to simplify.c One probably needs an auxiliary function which iterates through an array either along a dim= (- return a

[Bug fortran/38205] Tranformational function SUM rejected in initialization expressions

2008-11-26 Thread mikael at gcc dot gnu dot org
--- Comment #6 from mikael at gcc dot gnu dot org 2008-11-26 17:49 --- (In reply to comment #5) Currently not simplified are: - ALL/ANY/COUNT - cshift/eoshift - dot_product/matmul - (max|min)(loc|val) - note: (max|min)val is implemented for rank == 1 w/o dim - pack/unpack -

[Bug fortran/38205] Tranformational function SUM rejected in initialization expressions

2008-11-22 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2008-11-22 21:41 --- See also James' new c.l.f post: http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/e0d04d755453a2a5 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38205