[Bug fortran/48066] [4.3/4.4/4.5/4.6 Regression] Segfault with SUM of zero-sized array

2011-03-12 Thread tkoenig at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48066 Thomas Koenig changed: What|Removed |Added Status|NEW |ASSIGNED AssignedTo|unassigned at

[Bug fortran/48066] [4.3/4.4/4.5/4.6 Regression] Segfault with SUM of zero-sized array

2011-03-12 Thread tkoenig at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48066 --- Comment #9 from Thomas Koenig 2011-03-12 17:22:50 UTC --- This one looks better: Index: m4/ifunction_logical.m4 === --- m4/ifunction_logical.m4 (Revisi

[Bug fortran/48066] [4.3/4.4/4.5/4.6 Regression] Segfault with SUM of zero-sized array

2011-03-12 Thread tkoenig at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48066 --- Comment #8 from Thomas Koenig 2011-03-12 10:15:59 UTC --- (In reply to comment #7) > --- m4/ifunction_logical.m4 (Revision 170320) > +++ m4/ifunction_logical.m4 (Arbeitskopie) > @@ -49,8 +49,8 @@ >src_kind = GFC_DESCRIPTOR_SIZE (

[Bug fortran/48066] [4.3/4.4/4.5/4.6 Regression] Segfault with SUM of zero-sized array

2011-03-12 Thread tkoenig at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48066 --- Comment #7 from Thomas Koenig 2011-03-12 10:10:46 UTC --- (In reply to comment #6) > Of course, the patch does not work as "dest" is not NULL ... > > I wonder whether a patch like the following would be correct. Probably, although it might

[Bug fortran/48066] [4.3/4.4/4.5/4.6 Regression] Segfault with SUM of zero-sized array

2011-03-12 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48066 --- Comment #6 from Tobias Burnus 2011-03-12 09:38:18 UTC --- Of course, the patch does not work as "dest" is not NULL ... I wonder whether a patch like the following would be correct. One probably needs to go through all the users of ifunction{

[Bug fortran/48066] [4.3/4.4/4.5/4.6 Regression] Segfault with SUM of zero-sized array

2011-03-11 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48066 --- Comment #5 from Tobias Burnus 2011-03-11 11:28:57 UTC --- Draft patch: --- a/libgfortran/m4/ifunction.m4 +++ b/libgfortran/m4/ifunction.m4 @@ -132,7 +132,10 @@ name`'rtype_qual`_'atype_code (rtype * const restrict retarray, ')dnl define(ST

[Bug fortran/48066] [4.3/4.4/4.5/4.6 Regression] Segfault with SUM of zero-sized array

2011-03-10 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48066 Tobias Burnus changed: What|Removed |Added Priority|P3 |P4 Known to work|

[Bug fortran/48066] [4.3/4.4/4.5/4.6 Regression] Segfault with SUM of zero-sized array

2011-03-10 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48066 --- Comment #4 from Tobias Burnus 2011-03-10 23:34:53 UTC --- For completeness, the submitted asked at c.l.f whether the program is valid; Richard Maine thinks so. (I concur ;-) http://groups.google.com/group/comp.lang.fortran/browse_thread/thre

[Bug fortran/48066] [4.3/4.4/4.5/4.6 Regression] Segfault with SUM of zero-sized array

2011-03-10 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48066 --- Comment #3 from Tobias Burnus 2011-03-10 23:19:30 UTC --- (In reply to comment #2) > The "Bus error" seems fixed by the patch in > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43829#c32. Well, it does not fix it, it just hides the problem: Th

[Bug fortran/48066] [4.3/4.4/4.5/4.6 Regression] Segfault with SUM of zero-sized array

2011-03-10 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48066 Dominique d'Humieres changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug fortran/48066] [4.3/4.4/4.5/4.6 Regression] Segfault with SUM of zero-sized array

2011-03-10 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48066 Tobias Burnus changed: What|Removed |Added CC||tkoenig at gcc dot gnu.org --- Comment #1