[Bug libfortran/39083] stage 3 libgfortran build fails

2009-02-03 Thread mikael dot morin at tele2 dot fr
--- Comment #5 from mikael dot morin at tele2 dot fr 2009-02-03 18:00 --- /export/home/eckerta/Desktop/objdir/./gcc/gfortran -B/export/home/eckerta/Desktop/objdir/./gcc/ -B/usr/local/gcc-4.3.3/i686-pc-linux-gnu/bin/ -B/usr/local/gcc-4.3.3/i686-pc-linux-gnu/lib/ -isystem /usr/local/gcc

[Bug libfortran/39083] stage 3 libgfortran build fails

2009-02-03 Thread mikael dot morin at tele2 dot fr
--- Comment #6 from mikael dot morin at tele2 dot fr 2009-02-03 18:01 --- (In reply to comment #1) Only departure from defaults is --prefix No, -prefix ;) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39083

[Bug fortran/35983] C_LOC in derived type constructor gives weird result

2008-11-05 Thread mikael dot morin at tele2 dot fr
--- Comment #2 from mikael dot morin at tele2 dot fr 2008-11-05 11:43 --- There is a reset of the expression to NULL_EXPR in case we encounter c_null_ptr or c_null_funptr. However, the if conditions for this relies on the is_iso_c attribute, which is the case of c_loc. This patch

[Bug fortran/37992] [4.4 Regression] ICE segfault for character(len=len(x)) :: foo,x

2008-11-02 Thread mikael dot morin at tele2 dot fr
--- Comment #3 from mikael dot morin at tele2 dot fr 2008-11-02 17:50 --- (In reply to comment #1) First valgrind error: ==21621== Invalid read of size 8 ==21621==at 0x46AAEA: gfc_resolve_expr (resolve.c:4248) Second valgrind error: ==21621== Address 0x65b2ef8 is 40

[Bug fortran/37992] [4.4 Regression] ICE segfault for character(len=len(x)) :: foo,x

2008-11-02 Thread mikael dot morin at tele2 dot fr
--- Comment #4 from mikael dot morin at tele2 dot fr 2008-11-02 18:03 --- Created an attachment (id=16612) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16612action=view) hackish patch I think I got it. When the statement is rejected, all changes are reverted. However

[Bug fortran/37749] ICE on array section with vector subscript

2008-10-29 Thread mikael dot morin at tele2 dot fr
--- Comment #1 from mikael dot morin at tele2 dot fr 2008-10-29 20:59 --- Reduced case: subroutine subr (m, n, a, b, c, d, p) implicit none integer m, n real a(m,n), b(m,n), c(n,n), d(m,n) integer p(n) d = a(:,p) - matmul(b, c) end subroutine The problem is with a(:,p

[Bug fortran/37749] ICE on array section with vector subscript

2008-10-29 Thread mikael dot morin at tele2 dot fr
--- Comment #2 from mikael dot morin at tele2 dot fr 2008-10-29 21:06 --- Created an attachment (id=16585) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16585action=view) proposed patch, regression tested This patch solves the problem by going through all the loop dimensions

[Bug fortran/37903] [4.3/4.4 Regression] wrong-code for complicated vector subscripts

2008-10-28 Thread mikael dot morin at tele2 dot fr
--- Comment #7 from mikael dot morin at tele2 dot fr 2008-10-28 12:21 --- This is happening because (1) gfc_trans_constant_array_constructor sets loop-temp_dim to 1. (2) gfc_conv_loop_setup choses the last ss whose shape is known (that of i). (3) gfc_conv_loop_setup sets loop bounds

[Bug fortran/35820] internal compiler error with nested FORALL

2008-10-28 Thread mikael dot morin at tele2 dot fr
--- Comment #9 from mikael dot morin at tele2 dot fr 2008-10-28 14:06 --- So that they are not lost, patches are here: http://gcc.gnu.org/ml/fortran/2008-10/msg00153.html http://gcc.gnu.org/ml/fortran/2008-10/msg00181.html http://gcc.gnu.org/ml/fortran/2008-10/msg00212.html See

[Bug fortran/35840] ICE for character expression in I/O specifier

2008-10-28 Thread mikael dot morin at tele2 dot fr
--- Comment #18 from mikael dot morin at tele2 dot fr 2008-10-28 14:08 --- The final patch is here: http://gcc.gnu.org/ml/fortran/2008-10/msg00104.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35840

[Bug fortran/37903] [4.3/4.4 Regression] wrong-code for complicated vector subscripts

2008-10-28 Thread mikael dot morin at tele2 dot fr
--- Comment #8 from mikael dot morin at tele2 dot fr 2008-10-28 14:42 --- Created an attachment (id=16573) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16573action=view) second fix This patch solves the problem by releasing the (4) condition, making the loop bounds reset

[Bug fortran/37903] [4.3/4.4 Regression] wrong-code for complicated vector subscripts

2008-10-28 Thread mikael dot morin at tele2 dot fr
--- Comment #10 from mikael dot morin at tele2 dot fr 2008-10-28 18:27 --- Created an attachment (id=16574) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16574action=view) first fix This patch tries to solve the problem by changing the (2) condition. It tries to use an ss whose

[Bug fortran/37903] [4.3/4.4 Regression] wrong-code for complicated vector subscripts

2008-10-28 Thread mikael dot morin at tele2 dot fr
--- Comment #11 from mikael dot morin at tele2 dot fr 2008-10-28 18:43 --- (In reply to comment #9) Some synchronization seems needed. Well, may patch is made against trunk, so I will leave it as is for now. If Daniel commits his patch for PR35861, I can provide an updated patch

[Bug fortran/36091] false positive in bounds checking with forall

2008-10-23 Thread mikael dot morin at tele2 dot fr
--- Comment #4 from mikael dot morin at tele2 dot fr 2008-10-23 14:37 --- (In reply to comment #3) I am not 100% sure that the following is due to the patch in comment #1, There is already something wrong on trunk, but I agree that the patch makes it worse. As a side note I'm really

[Bug fortran/37903] New: wrong-code for complicated vector subscripts

2008-10-23 Thread mikael dot morin at tele2 dot fr
subscripts Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mikael dot morin at tele2 dot fr http://gcc.gnu.org

[Bug fortran/37903] [4.3/4.4 Regression] wrong-code for complicated vector subscripts

2008-10-23 Thread mikael dot morin at tele2 dot fr
--- Comment #3 from mikael dot morin at tele2 dot fr 2008-10-23 21:27 --- Quickfix (understand: not regression tested): Index: trans-array.c === --- trans-array.c (révision 141321) +++ trans-array.c (copie de

[Bug fortran/37903] [4.3/4.4 Regression] wrong-code for complicated vector subscripts

2008-10-23 Thread mikael dot morin at tele2 dot fr
--- Comment #4 from mikael dot morin at tele2 dot fr 2008-10-23 22:31 --- There is this comment at the beginning of gfc_trans_create_temp_array. /* TODO: Investigate why if (n loop-temp_dim) gcc_assert (integer_zerop (loop-from[n])); fails here. */ This is the case here: n=0

[Bug fortran/36091] false positive in bounds checking with forall

2008-10-22 Thread mikael dot morin at tele2 dot fr
--- Comment #1 from mikael dot morin at tele2 dot fr 2008-10-22 12:49 --- Created an attachment (id=16527) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16527action=view) patch solving the problem This patch keeps the original array descriptor from gfc_conv_subref_array_arg

[Bug fortran/36091] false positive in bounds checking with forall

2008-10-22 Thread mikael dot morin at tele2 dot fr
--- Comment #2 from mikael dot morin at tele2 dot fr 2008-10-22 12:52 --- I forgot to say that it is regression tested on x86_64-unknown-linux-gnu -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36091

[Bug c/37850] infinite recursive call to __mulsc3 when multiplying not-constant complexs

2008-10-18 Thread mikael dot morin at tele2 dot fr
--- Comment #6 from mikael dot morin at tele2 dot fr 2008-10-18 12:03 --- updated testcase : #include complex.h int main () { float a = 1.; complex float v; v = I * 1.; /* works */ v = I * a; /* fails */ return 0; } Two conditions seem

[Bug fortran/37850] FAIL: gfortran.dg/c_by_val_1.f gfortran.dg/value_4.f90 execution test

2008-10-17 Thread mikael dot morin at tele2 dot fr
--- Comment #3 from mikael dot morin at tele2 dot fr 2008-10-17 12:39 --- I'm at r141174. But I don't think it is one particular revision. I have seen this for a couple of weeks now. I thought it would be reverted soon. Now, I'm not sure it is a gcc bug. I have the feeling that my

[Bug c/37850] FAIL: gfortran.dg/c_by_val_1.f gfortran.dg/value_4.f90 execution test

2008-10-17 Thread mikael dot morin at tele2 dot fr
--- Comment #5 from mikael dot morin at tele2 dot fr 2008-10-17 16:38 --- I'v just tried r140349 and r141192. It's not better. -- mikael dot morin at tele2 dot fr changed: What|Removed |Added

[Bug fortran/37850] New: FAIL: gfortran.dg/c_by_val_1.f gfortran.dg/value_4.f90 execution test

2008-10-16 Thread mikael dot morin at tele2 dot fr
: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mikael dot morin at tele2 dot fr GCC host triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37850

[Bug fortran/35840] ICE for character expression in I/O specifier

2008-10-12 Thread mikael dot morin at tele2 dot fr
--- Comment #17 from mikael dot morin at tele2 dot fr 2008-10-12 11:47 --- (In reply to comment #16) Mikael, are you still with us? Your approach was fine. Yep, I'm not dead yet. I was waiting for my copyright assignment form. Now it's on the way back, I will post to gcc-patches

[Bug fortran/35840] ICE for character expression in I/O specifier

2008-09-14 Thread mikael dot morin at tele2 dot fr
--- Comment #4 from mikael dot morin at tele2 dot fr 2008-09-14 16:42 --- Created an attachment (id=16318) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16318action=view) proposed patch The problem here is that the parser matches a general expression and has to check later

[Bug fortran/36275] Binding label can be any scalar char initialisation expression

2008-09-03 Thread mikael dot morin at tele2 dot fr
--- Comment #6 from mikael dot morin at tele2 dot fr 2008-09-03 21:44 --- Created an attachment (id=16215) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16215action=view) proposed patch With this patch the first testcase compiles with two warnings. It doesn't handle import

[Bug fortran/37274] [Regression 4.4 (and 4.3?)] error: type name is ambiguous.

2008-08-31 Thread mikael dot morin at tele2 dot fr
--- Comment #11 from mikael dot morin at tele2 dot fr 2008-08-31 21:16 --- (In reply to comment #10) I think your example should be rejected, but it is not like my code, where smooth_mesh explicitly USEs class_vector. So, I am not sure what's your point. My point is this: As you

[Bug fortran/37274] [Regression 4.4 (and 4.3?)] error: type name is ambiguous.

2008-08-31 Thread mikael dot morin at tele2 dot fr
--- Comment #12 from mikael dot morin at tele2 dot fr 2008-08-31 21:52 --- Actually, my comment #7 seems to be more related to bug #36374. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37274

[Bug fortran/37274] [Regression 4.4 (and 4.3?)] error: type name is ambiguous.

2008-08-31 Thread mikael dot morin at tele2 dot fr
--- Comment #13 from mikael dot morin at tele2 dot fr 2008-08-31 23:34 --- (In reply to comment #12) Actually, my comment #7 seems to be more related to bug #36374. No, it's not -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37274

[Bug fortran/37274] [Regression 4.4 (and 4.3?)] error: type name is ambiguous.

2008-08-30 Thread mikael dot morin at tele2 dot fr
--- Comment #7 from mikael dot morin at tele2 dot fr 2008-08-30 11:27 --- I think this should be rejected : module class_vector implicit none type vector end type vector end module class_vector module tools_math implicit none interface lin_interp function lin_interp_v

[Bug fortran/37274] [Regression 4.4 (and 4.3?)] error: type name is ambiguous.

2008-08-30 Thread mikael dot morin at tele2 dot fr
--- Comment #8 from mikael dot morin at tele2 dot fr 2008-08-30 12:12 --- Created an attachment (id=16171) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16171action=view) another testcase with comments telling how to get/not get the error Look at the comments in module

[Bug fortran/37274] [Regression 4.4 (and 4.3?)] error: type name is ambiguous.

2008-08-30 Thread mikael dot morin at tele2 dot fr
--- Comment #9 from mikael dot morin at tele2 dot fr 2008-08-30 12:17 --- Forget comment #8. I was testing with version 4.3.1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37274

[Bug fortran/33566] New: fortran : wrong rank of derived type parameters array components

2007-09-26 Thread mikael dot morin at tele2 dot fr
Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mikael dot morin at tele2 dot fr GCC host triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33566

[Bug fortran/33343] New: ICE (segfault) on invalid code with wrongly shaped arguments to elemental procedures

2007-09-07 Thread mikael dot morin at tele2 dot fr
Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mikael dot morin at tele2 dot fr http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33343

[Bug fortran/32170] string badly passed as function arguments

2007-06-01 Thread mikael dot morin at tele2 dot fr
--- Comment #8 from mikael dot morin at tele2 dot fr 2007-06-01 10:57 --- Ok, placing the function in a contains statement still reproduces the bug with 4.1.2, but doesn't compile with 4.3, complaining about the wrong size of the string arguments. And using variable size strings (len

[Bug fortran/32129] ICE: Procedure call with array-section-actual to scalar dummy

2007-06-01 Thread mikael dot morin at tele2 dot fr
--- Comment #2 from mikael dot morin at tele2 dot fr 2007-06-02 00:06 --- Here is an other test case. program testCode implicit none type vec real, dimension(3) :: coords end type integer, parameter :: n = 5 integer :: i real

[Bug fortran/32170] New: string badly passed as function arguments

2007-05-31 Thread mikael dot morin at tele2 dot fr
ReportedBy: mikael dot morin at tele2 dot fr GCC host triplet: x86_64-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32170

[Bug fortran/32170] string badly passed as function arguments

2007-05-31 Thread mikael dot morin at tele2 dot fr
--- Comment #1 from mikael dot morin at tele2 dot fr 2007-05-31 19:00 --- $ export FILE=test $ cat $FILE.f program testchar character(len=30), dimension(2) :: str1, str2 str1 = (/ string1, string2 /) write(6,*) str1 write(str2(1),*) string1

[Bug fortran/32170] string badly passed as function arguments

2007-05-31 Thread mikael dot morin at tele2 dot fr
--- Comment #2 from mikael dot morin at tele2 dot fr 2007-05-31 19:04 --- $ export FILE=test2 $ cat $FILE.f program testchar character(len=30), dimension(2) :: str2 write(str2(1),*) string1 write(str2(2),*) string2

[Bug fortran/32170] string badly passed as function arguments

2007-05-31 Thread mikael dot morin at tele2 dot fr
--- Comment #3 from mikael dot morin at tele2 dot fr 2007-05-31 19:18 --- $ export FILE=test3 $ cat $FILE.f program testchar character(len=30), dimension(2) :: str2 write(str2(1),*) string1 write(str2(2),*) string2 call

[Bug fortran/32170] string badly passed as function arguments

2007-05-31 Thread mikael dot morin at tele2 dot fr
--- Comment #4 from mikael dot morin at tele2 dot fr 2007-05-31 19:26 --- $ export FILE=test6 $ cat $FILE.f program testchar character(len=30) :: str2 write(str2,*) string1 call test( str2 ) call test(string2

[Bug fortran/31346] New: wrong values for ubound and size of deferred shape arrays

2007-03-25 Thread mikael dot morin at tele2 dot fr
Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mikael dot morin at tele2 dot fr GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi

[Bug fortran/31346] wrong values for ubound and size of deferred shape arrays

2007-03-25 Thread mikael dot morin at tele2 dot fr
--- Comment #1 from mikael dot morin at tele2 dot fr 2007-03-25 14:38 --- Created an attachment (id=13283) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13283action=view) program showing the bug -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31346

[Bug fortran/31346] wrong values for ubound and size of deferred shape arrays

2007-03-25 Thread mikael dot morin at tele2 dot fr
--- Comment #2 from mikael dot morin at tele2 dot fr 2007-03-25 14:41 --- $ FC=gfortran; $FC -v; $FC -o test test.f; echo; ./test Lecture des spécification à partir de /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/specs Target: x86_64-pc-linux-gnu Configuré avec: /usr/src/gcc-4.1.2/configure

[Bug fortran/31346] wrong values for ubound and size of deferred shape arrays

2007-03-25 Thread mikael dot morin at tele2 dot fr
--- Comment #3 from mikael dot morin at tele2 dot fr 2007-03-26 05:58 --- Created an attachment (id=13286) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13286action=view) the working case The problem arise when the subroutine is not defined in a contains statement in the main

[Bug fortran/31253] ICE in gfc_conv_constant, at fortran/trans-const.c:348

2007-03-18 Thread mikael dot morin at tele2 dot fr
--- Comment #5 from mikael dot morin at tele2 dot fr 2007-03-18 11:58 --- Created an attachment (id=13225) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13225action=view) a test program that does not fail -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31253

[Bug fortran/31252] New: ICE dans gfc_conv_constant, � fortran/trans-const.c:348

2007-03-17 Thread mikael dot morin at tele2 dot fr
ReportedBy: mikael dot morin at tele2 dot fr GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31252

[Bug fortran/31253] New: ICE in gfc_conv_constant, at fortran/trans-const.c:348

2007-03-17 Thread mikael dot morin at tele2 dot fr
: major Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mikael dot morin at tele2 dot fr GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org

[Bug fortran/31253] ICE in gfc_conv_constant, at fortran/trans-const.c:348

2007-03-17 Thread mikael dot morin at tele2 dot fr
--- Comment #1 from mikael dot morin at tele2 dot fr 2007-03-17 21:58 --- Created an attachment (id=13223) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13223action=view) the test program that fails -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31253

[Bug fortran/31253] ICE in gfc_conv_constant, at fortran/trans-const.c:348

2007-03-17 Thread mikael dot morin at tele2 dot fr
--- Comment #2 from mikael dot morin at tele2 dot fr 2007-03-17 22:03 --- the attached program (test.f) fails to compile: the compilation command is : gfortran -c test.f the error is : test.f: In function ‘probleme’: test.f:2: erreur interne du compilateur: dans gfc_conv_constant, à