[Bug fortran/50549] New: should detect different type parameters in structure constructors (r178939)

2011-09-28 Thread zeccav at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50549 Bug #: 50549 Summary: should detect different type parameters in structure constructors (r178939) Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNC

[Bug fortran/50550] New: does not recognize pointer variable at initialization (r178939)

2011-09-28 Thread zeccav at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50550 Bug #: 50550 Summary: does not recognize pointer variable at initialization (r178939) Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED

[Bug fortran/50551] New: Argumentless NULL() cannot be used with assumed-length dummy (r178939)

2011-09-28 Thread zeccav at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50551 Bug #: 50551 Summary: Argumentless NULL() cannot be used with assumed-length dummy (r178939) Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFI

[Bug fortran/50552] New: type name cannot be statement function dummy argument (r178939)

2011-09-28 Thread zeccav at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50552 Bug #: 50552 Summary: type name cannot be statement function dummy argument (r178939) Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED

[Bug fortran/50553] New: statement function cannot be target (r178939)

2011-09-28 Thread zeccav at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50553 Bug #: 50553 Summary: statement function cannot be target (r178939) Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Prio

[Bug fortran/50554] New: INQUIRE cannot redefine DO index (r178939)

2011-09-28 Thread zeccav at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50554 Bug #: 50554 Summary: INQUIRE cannot redefine DO index(r178939) Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Prio

[Bug fortran/50555] New: synonymous namelist/statement function dummy argument not allowed (r178939)

2011-09-28 Thread zeccav at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50555 Bug #: 50555 Summary: synonymous namelist/statement function dummy argument not allowed (r178939) Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNC

[Bug fortran/50556] New: cannot save namelist group name

2011-09-28 Thread zeccav at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50556 Bug #: 50556 Summary: cannot save namelist group name Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug fortran/50514] gfortran should check ISHFT & ISHFTC aruments (r178939)

2011-09-28 Thread zeccav at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50514 --- Comment #2 from Vittorio Zecca 2011-09-28 09:20:40 UTC --- I meant checking static expressions at compilation time, as in my example. This has no cost at run time. You proposed a run time check that still should be done if requested with a ki

[Bug fortran/50514] gfortran should check ISHFT & ISHFTC aruments (r178939)

2011-09-28 Thread zeccav at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50514 --- Comment #4 from Vittorio Zecca 2011-09-29 06:58:24 UTC --- About run time checking: I believe the bit size of k is known at compile time, and the overhead to check n against it is negligible as compared to computing ishft itself and maybe n.

[Bug fortran/50552] type name cannot be statement function dummy argument (r178939)

2011-10-18 Thread zeccav at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50552 --- Comment #3 from Vittorio Zecca 2011-10-18 13:55:31 UTC --- I am traveling in Korea, and I cannot look at the standard now. If you believe this is a non-issue then please close it.

[Bug fortran/58226] negative subscript pos at fortran/options.c:1205

2013-10-06 Thread zeccav at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58226 --- Comment #4 from Vittorio Zecca --- I could not reproduce the issue with version 4.8.2 20130920, probably it has silently been fixed sometime in the past. Maybe this issue should be closed.

[Bug fortran/58813] SIGSEGV in show_locus at error.c:310

2013-10-21 Thread zeccav at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58813 --- Comment #5 from Vittorio Zecca --- I did not know about MALLOC_PERTURB_ I just put in my .bashrc profile export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) gfortran fails in different places if the input file is .f or .f90 As .f I get bus error a

[Bug fortran/58813] SIGSEGV in show_locus at error.c:310

2013-10-21 Thread zeccav at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58813 --- Comment #6 from Vittorio Zecca --- I found that export MALLOC_PERTURB_=256 produces a quiet NaN. I'll use this one in my .bashrc It seems to me that the earlier symptom of malfunctioning is in symbol.c:5001 " dummies = sym->formal;" where sym

[Bug fortran/58813] SIGSEGV in show_locus at error.c:310

2013-10-22 Thread zeccav at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58813 --- Comment #8 from Vittorio Zecca --- If I use the option -fmax-errors=1 the ICE disappears, but using this option as a default would potentially increase the time needed to get an error free code. A code containing many errors would require as m

[Bug fortran/59065] New: questionable bounds for unassociated allocatable/pointer arrays?

2013-11-10 Thread zeccav at gmail dot com
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com ! gfortran produces SIGSEV at run time for access to unassociated allocatable/pointer arrays ! questionable bounds for unassociated allocatable/pointer arrays

[Bug fortran/59065] questionable bounds for unassociated allocatable/pointer arrays?

2013-11-10 Thread zeccav at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59065 --- Comment #2 from Vittorio Zecca --- g95: complains about deallocated array passed to LBOUND Intel ifort: 1 0 0 1 0 0 1 0 0 1 0

[Bug fortran/59065] questionable bounds for unassociated allocatable/pointer arrays?

2013-11-11 Thread zeccav at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59065 --- Comment #5 from Vittorio Zecca --- I do not think SIZE should be used to detect an undefined array pointer, but a size of zero warns the code that the array is mostly unusable and that perhaps something is wrong, while a nonzero size is tellin

[Bug fortran/59065] questionable bounds for unassociated allocatable/pointer arrays?

2013-11-12 Thread zeccav at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59065 --- Comment #7 from Vittorio Zecca --- I believe most times a code knows if and when the size of an array must be nonzero, so a zerosize array would raise suspicions in those cases. Anyway in my opinion gfortran run time should detect when an unal

[Bug fortran/59065] questionable bounds for unassociated allocatable/pointer arrays?

2013-11-12 Thread zeccav at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59065 --- Comment #9 from Vittorio Zecca --- Unfortunately associated() does not allow unassociated array pointers as input so your code works for allocatable arrays but not for array pointers. Yes, a negative value for size() is good. It is a pity ther

[Bug testsuite/85340] New: allocate_deferred_char_scalar_1.f03 dereferences null pointer

2018-04-11 Thread zeccav at gmail dot com
Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Testsuite program allocate_deferred_char_scalar_1.f03 at lines 68 and 69 dereferences pointer str4 which was nullified at line 66. Same

[Bug fortran/85387] New: incorrect output with optimization /= 0

2018-04-12 Thread zeccav at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Host: x86_64-pc-linux-gnu ! incorrect output with optimization /= 0 ! on trunk 259205 real efg_pw(2,2) efg_pw(1,1)=1 efg_pw(2,1)=2 efg_pw(1,2)=3 efg_pw(2,2)=4

[Bug fortran/85631] New: Runtime error message array bound mismatch with nonzero optimization

2018-05-03 Thread zeccav at gmail dot com
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Host: x86_64-pc-linux-gnu ! Runtime error message on good Fortran ! gfortran -O -g -fcheck=bounds ! must be compiled

[Bug libfortran/85253] [8 Regression] asan detects heap-buffer-overflow in matmul_r4.c

2018-05-03 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85253 --- Comment #8 from Vittorio Zecca --- Compiling and running under both 8.0.1 and 8.1.0 with MALLOC_CHECK_=1 (see man mallopt) I get the following (notice "free(): invalid pointer" from mallopt) /usr/bin/gfortran -g -O0 gfbug144.f [vitti f95]$

[Bug c/85789] New: Signed integer overflow with nonzero optimization in cse.c

2018-05-15 Thread zeccav at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Host: x86_64-pc-linux-gnu // Signed integer overflow in sanitized version of gcc trunk 260152 // Taken from testcase pr82596.c // Must

[Bug c/85814] New: ICE Segmentation fault during GIMPLE pass: strlen -O3 and above

2018-05-16 Thread zeccav at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Host: x86_64-pc-linux-gnu Created attachment 44141 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44141&acti

[Bug tree-optimization/85814] [8/9 Regression] ICE Segmentation fault during GIMPLE pass: strlen -O3 and above

2018-05-17 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85814 --- Comment #5 from Vittorio Zecca --- I confirm I get the ICE on trunk 260152 and on a sanitized version I also get ../../gcc/gcc/tree-ssa-strlen.c:721:11: runtime error: member access within null pointer of type 'struct strinfo' Thank you for

[Bug fortran/80657] [7/8/9 Regression] Loop in character function declaration

2018-05-20 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80657 --- Comment #10 from Vittorio Zecca --- Just applied the fix: gfortran delivers an error message and exits. In 10 milliseconds! Thank you for fixing this one.

[Bug fortran/85851] New: trunk 260152 ICE in gfc_conv_structure Segmentation fault at trans-expr.c:7810

2018-05-20 Thread zeccav at gmail dot com
: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Host: x86_64-pc-linux-gnu ! trunk 260152 ICE in gfc_conv_structure Segmentation fault at trans-expr.c:7810

[Bug c++/91350] New: ICE in gimple_call_arg, at gimple.h:3190 during GIMPLE pass: cddce with options -O1 -fipa-sra

2019-08-04 Thread zeccav at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Created attachment 46670 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46670&action=edit Test ca

[Bug c++/68045] [concepts] segfault in contains_struct_check ../../gcc/gcc/tree.h:2971

2019-10-14 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68045 --- Comment #3 from Vittorio Zecca --- On my test case the ICE disappeared and I am now having: gfortran -S gfbug111.f gfbug111.f:13:6: 13 | function abc_interface(this) | 1 Error: ABSTRACT INTERFACE ‘abc_interface’ at (1) m

[Bug libfortran/81983] sanitizer detects undefined runtime error in libbacktrace

2017-12-28 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81983 --- Comment #2 from Vittorio Zecca --- I am traveling abroad now, sorry I cannot help.

[Bug rtl-optimization/87703] UBSAN: poly-int.h:1941:12: runtime error: negation of -9223372036854775808 cannot be represented in type 'long int'; cast to an unsigned type to negate this value to itsel

2019-04-15 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87703 Vittorio Zecca changed: What|Removed |Added CC||zeccav at gmail dot com --- Comment #1

[Bug middle-end/85164] poly-int.h:845:5: runtime error: signed integer overflow

2019-04-16 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85164 Vittorio Zecca changed: What|Removed |Added CC||zeccav at gmail dot com --- Comment #2

[Bug tree-optimization/87042] UBSAN: poly-int.h:1095:5: runtime error: signed integer overflow: 9223372036854775807 * 8 cannot be represented in type 'long int'

2019-04-16 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87042 Vittorio Zecca changed: What|Removed |Added CC||zeccav at gmail dot com --- Comment #4

[Bug rtl-optimization/85789] Signed integer overflow with nonzero optimization in cse.c

2019-04-17 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85789 --- Comment #1 from Vittorio Zecca --- I confirm it is still in trunk 270309, must be compiled with nonzero optimization ~/local/gcc-270309-undefined/bin/gcc -S -O gccerr67.c ../../gcc/gcc/cse.c:2215:34: runtime error: signed integer overflow:

[Bug middle-end/85164] poly-int.h:845:5: runtime error: signed integer overflow

2019-04-19 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85164 --- Comment #11 from Vittorio Zecca --- After applying your fixes I still have overflow compiling the following // Must be compiled with nonzero optimization //../../gcc/gcc/poly-int.h:1095:5: runtime error: signed integer overflow: 922337203685

[Bug middle-end/85164] poly-int.h:845:5: runtime error: signed integer overflow

2019-04-19 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85164 --- Comment #12 from Vittorio Zecca --- Here are two more test cases with undefined behaviour in poly-int.h Must be compiled with nonzero optimization cat gccerr73.c // must be compiled with nonzero optimization // ../../gcc/gcc/poly-int.h:753:

[Bug middle-end/85164] poly-int.h:845:5: runtime error: signed integer overflow

2019-04-23 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85164 --- Comment #16 from Vittorio Zecca --- On Saturday afternoon I had a power failure that probably damaged my disk, so I cannot help you now.

[Bug tree-optimization/90242] [UBSAN]: in vn_reference_compute_hash

2019-04-26 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90242 Vittorio Zecca changed: What|Removed |Added CC||zeccav at gmail dot com --- Comment #3

[Bug target/89504] Checking ICE in 'gcc.dg/rtl/x86_64/pro_and_epilogue.c'

2019-04-26 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89504 Vittorio Zecca changed: What|Removed |Added CC||zeccav at gmail dot com --- Comment #2

[Bug libfortran/87247] New: intrinsic acosh violates 2008 Standard rule 13.7.5 line 5

2018-09-06 Thread zeccav at gmail dot com
Priority: P3 Component: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- ! Intrinsic acosh violates 2008 Standard rule 13.7.5 line 5 ! "If the result is complex the imaginary part is expressed in radians and

[Bug fortran/70870] Segmentation violation in gfc_assign_data_value

2018-04-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70870 --- Comment #5 from Vittorio Zecca --- After applying the fix in comment 3 to trunk 258946 the ICE disappears and an error message appears, as it should be.

[Bug fortran/61907] load of invalid value for 'bool' in trans-array.c trans_array_constructor

2018-04-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61907 Vittorio Zecca changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug other/63426] [meta-bug] Issues found with -fsanitize=undefined

2018-04-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 Bug 63426 depends on bug 61907, which changed state. Bug 61907 Summary: load of invalid value for 'bool' in trans-array.c trans_array_constructor https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61907 What|Removed

[Bug other/63426] [meta-bug] Issues found with -fsanitize=undefined

2018-04-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 Bug 63426 depends on bug 61910, which changed state. Bug 61910 Summary: undefined computation in trans-expr.c gfc_conv_cst_int_power https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61910 What|Removed |Added ---

[Bug fortran/61910] undefined computation in trans-expr.c gfc_conv_cst_int_power

2018-04-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61910 Vittorio Zecca changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug fortran/50541] gfortran should not accept a pointer as a generic-name (r178939)

2018-04-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50541 --- Comment #6 from Vittorio Zecca --- Bug still there in 7.3.0 and trunk 258946.

[Bug fortran/50550] does not recognize pointer variable at initialization (r178939)

2018-04-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50550 --- Comment #5 from Vittorio Zecca --- Bug still present in 7.3.0 and trunk 258946.

[Bug fortran/50550] does not recognize pointer variable at initialization (r178939)

2018-04-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50550 --- Comment #7 from Vittorio Zecca --- Sorry about that, long time I did not blush, I'll try to remember the lesson.

[Bug middle-end/64327] ../../gcc/gcc/rtlanal.c:4881:48: runtime error: shift exponent 4294967295 is too large for 64-bit type 'long unsigned int'

2018-04-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64327 --- Comment #9 from Vittorio Zecca --- Sorry for the delay in answering but I was traveling. I cannot reproduce on version 7, while it reproduces on 6.4.0.

[Bug middle-end/64920] bootstrap-ubsan [build/gengtype -r gtype.state]: libiberty/regex.c:6970:11: runtime error: left shift of negative value -1

2018-04-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64920 --- Comment #4 from Vittorio Zecca --- Sorry for late answer, but I was traveling. I did not see it any longer.

[Bug libfortran/85253] New: asan detects heap-buffer-overflow in matmul_r4.c

2018-04-06 Thread zeccav at gmail dot com
: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu ! In trunk 258946 asan detects heap buffer overflow in libgfortran/generated/matmul_r4.c

[Bug libfortran/85253] [8 Regression] asan detects heap-buffer-overflow in matmul_r4.c

2018-04-06 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85253 --- Comment #4 from Vittorio Zecca --- After applying the fix in comment #3 the asan message disappeared.

[Bug libfortran/85253] [8 Regression] asan detects heap-buffer-overflow in matmul_r4.c

2018-04-06 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85253 --- Comment #7 from Vittorio Zecca --- You are welcome, very fast fix, keep up the good work!

[Bug fortran/49630] [OOP] ICE on obsolescent deferred-length type bound character function

2016-04-27 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49630 --- Comment #11 from Vittorio Zecca --- I am still having an ICE with gfortran 5.3.0 on the following module abc implicit none type,abstract::abc_abstract contains procedure(abc_interface),deferred::abc_function

[Bug fortran/50402] ICE in gfc_conv_expr_descriptor

2016-04-27 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50402 --- Comment #4 from Vittorio Zecca --- ICE on gfortran 5.3.0 gfortran should never have an ICE, even on invalid code.

[Bug fortran/50410] [4.9/5/6/7 Regression] ICE in record_reference

2016-04-27 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50410 --- Comment #21 from Vittorio Zecca --- ICE still in 5.3.0

[Bug fortran/50392] SIGSEGV in gfc_trans_label_assign

2016-04-27 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50392 --- Comment #8 from Vittorio Zecca --- ICE still in 5.3.0

[Bug fortran/50536] an input item shall not appear as the do-variable of any io-implied-do

2016-04-27 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50536 --- Comment #8 from Vittorio Zecca --- Still in 5.3.0

[Bug ada/67494] xsinfo sanitizer detects overlapping strings in assignment statement

2016-04-28 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67494 --- Comment #2 from Vittorio Zecca --- Any update on this issue?

[Bug fortran/44265] Link error with reference to parameter array in specification expression

2016-04-28 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44265 --- Comment #7 from Vittorio Zecca --- Still in 5.3.0

[Bug fortran/50069] FORALL fails on a character array

2016-04-28 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50069 --- Comment #7 from Vittorio Zecca --- Still in 5.3.0

[Bug fortran/67497] data.c sanitizer runtime error: null pointer passed as argument 2, which is declared to never be null

2016-04-28 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67497 --- Comment #3 from Vittorio Zecca --- Still in gfortran 5.3.0 /home/vitti/gcc-5.3.0/gcc/fortran/data.c:191:32: runtime error: null pointer passed as argument 2, which is declared to never be null data.c:191 "memcpy (&dest[start], rvalue->value

[Bug fortran/67498] interface.c sanitizer runtime error: load of value 1818451807, which is not a valid value for type 'expr_t'

2016-04-28 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67498 --- Comment #3 from Vittorio Zecca --- Still in gfortran 5.3.0 /home/vitti/gcc-5.3.0/gcc/fortran/interface.c:2707:33: runtime error: load of value 1818451807, which is not a valid value for type 'expr_t' interface.c:2707 "&& f->sym->ts.u.cl->le

[Bug target/67484] options-save.c sanitizer asan detects freed storage referenced heap-use-after-free

2016-04-28 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67484 --- Comment #14 from Vittorio Zecca --- I still get it in g++ 5.3.0 You may reproduce this one with a version of g++ compiled with -fsanitize=address [vitti cc]$/home/vitti/1tb/vitti/local/gcc-5.3.0-address/bin/g++ gccerr26.C -S ===

[Bug fortran/70870] New: Segmentation violation in gfc_assign_data_value

2016-04-29 Thread zeccav at gmail dot com
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- ! gfortran 6.1.0 Segmentation fault in gfc_assign_data_value type t integer :: g=0 ! default initialization end type type(t) :: v2 data v2/t

[Bug c++/70872] New: c++ regression malloc not found c++ 5.3.0 compiles fine

2016-04-29 Thread zeccav at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- c++ fails to compile some mozilla firefox version 42 cc files c++ 5.3.0 compiles fine firefox configured with ../configure --disable-gconf then run

[Bug c/70874] New: Segmentation violation in tree-chkp.c chkp_walk_pointer_assignments

2016-04-29 Thread zeccav at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- /* gcc -fsanitize=undefined -fcheck-pointer-bounds -mmpx */ void f(char *a, int *b) { *b = *a; } /* * p.c:5:1: internal compiler error

[Bug c/70875] New: ICE in get_ubsan_type_info_for_type with -fsanitize=undefined

2016-04-29 Thread zeccav at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- /* gcc -fsanitize=undefined */ int foo (int n, int k) { struct S { int i[n]; int value; } s[2]; return s[k].value = 0; } int

[Bug c/70876] New: ICE in chkp_find_bounds: Unexpected tree code with_size_expr

2016-04-29 Thread zeccav at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- /* gcc -fcheck-pointer-bounds -mmpx */ void f (char *s1, char *s2) { int z = 5; struct { char a[z]; } x; s1[0] = s2[0]; foo (x, x

[Bug c/70877] New: ICE in in convert_move

2016-04-29 Thread zeccav at gmail dot com
: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- /* gcc -fcheck-pointer-bounds -mmpx */ int foo(int); typedef struct { double d; int a; } str_t; void bar(double d, int i, str_t s) { d = ((double (*) (int)) foo) (i); } /*p.c: In function ‘bar

[Bug c++/67737] [C++1z] ICE in make_decl_rtl, at varasm.c:1299

2016-04-29 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67737 Vittorio Zecca changed: What|Removed |Added CC||zeccav at gmail dot com --- Comment #7

[Bug c/70878] New: ICE in expand_expr_addr_expr_1, at expr.c:7680

2016-04-29 Thread zeccav at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- /* gcc -fsanitize=undefined */ void * sbrk () { volatile register __attribute__ ((__spu_vector__)) unsigned int sp_r1 __asm__ ("1"); __builtin_spu_extract

[Bug fortran/67496] trans-array.c sanitizer runtime error: load of value 124, which is not a valid value for type 'bool'

2016-04-29 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67496 --- Comment #3 from Vittorio Zecca --- Just back from my travels. Sorry, I get the same warning on 6.1.0: /home/vitti/1tb/vitti/gcc-6.1.0-undefined/gcc/f951 -quiet gfbug121.f ../../gcc-6.1.0/gcc/fortran/trans-array.c:2234:27: runtime error: loa

[Bug fortran/67497] data.c sanitizer runtime error: null pointer passed as argument 2, which is declared to never be null

2016-04-29 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67497 --- Comment #4 from Vittorio Zecca --- And in 6.1.0 ../../gcc-6.1.0/gcc/fortran/data.c:191:32: runtime error: null pointer passed as argument 2, which is declared to never be null

[Bug fortran/67498] interface.c sanitizer runtime error: load of value 1818451807, which is not a valid value for type 'expr_t'

2016-04-29 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67498 --- Comment #4 from Vittorio Zecca --- Still in gfortran 6.1.0 ../../gcc-6.1.0/gcc/fortran/interface.c:2738:33: runtime error: load of value 1818451807, which is not a valid value for type 'expr_t'

[Bug fortran/50410] [4.9/5/6/7 Regression] ICE in record_reference

2016-04-29 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50410 --- Comment #22 from Vittorio Zecca --- Same ICE in 6.1.0

[Bug fortran/49278] ICE (segfault) when combining DATA with default initialization

2016-04-29 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49278 --- Comment #11 from Vittorio Zecca --- Same ICE in 6.1.0

[Bug fortran/67496] trans-array.c sanitizer runtime error: load of value 124, which is not a valid value for type 'bool'

2016-04-29 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67496 --- Comment #5 from Vittorio Zecca --- Yes, I did test your patch, but nothing changed. I understand you tried to generate a sanitized version of f951 but the process failed. I did the following (approximately): CFLAGS="-fsanitize=undefined -Og

[Bug middle-end/64327] ../../gcc/gcc/rtlanal.c:4881:48: runtime error: shift exponent 4294967295 is too large for 64-bit type 'long unsigned int'

2016-04-29 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64327 --- Comment #7 from Vittorio Zecca --- On 6.1.0 I applied the same patch I suggested on comment 6, this time at line 5187, and the runtime error disappeared.

[Bug middle-end/67485] expmed.c sanitizer detects overflow

2016-04-30 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67485 --- Comment #1 from Vittorio Zecca --- Still in 6.1.0 at line 3162 of expmed.c "val_so_far -= (HOST_WIDE_INT) 1 << log;" ../../gcc-6.1.0/gcc/expmed.c:3162:42: runtime error: signed integer overflow: -9223372036854775808 - 1 cannot be represente

[Bug other/69412] bootstrap-ubsan profiledbootstrap issues

2016-04-30 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69412 Vittorio Zecca changed: What|Removed |Added CC||zeccav at gmail dot com --- Comment #3

[Bug other/69412] bootstrap-ubsan profiledbootstrap issues

2016-04-30 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69412 --- Comment #4 from Vittorio Zecca --- A reproducer for the parser.c runtime error /* gcc-6.1.0-undefined/bin/g++ -I../../gcc-6.1.0/gcc/. -I../../gcc-6.1.0/gcc/../include -I../../gcc-6.1.0/gcc/../libcpp/include p.c -S -I. */ /* ../../gcc-6

[Bug fortran/67496] trans-array.c sanitizer runtime error: load of value 124, which is not a valid value for type 'bool'

2016-04-30 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67496 --- Comment #7 from Vittorio Zecca --- I understand that you are still seeing a message like this ../../gcc-6.1.0/gcc/fortran/trans-array.c:2233:27: runtime error: load of value 176, which is not a valid value for type 'bool' right? If yes, th

[Bug fortran/67496] trans-array.c sanitizer runtime error: load of value 124, which is not a valid value for type 'bool'

2016-04-30 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67496 --- Comment #9 from Vittorio Zecca --- My C is not better than yours, but length_from_typespec might have been incorrectly initialized elsewhere, otherwise it is a false positive.

[Bug fortran/49278] ICE (segfault) when combining DATA with default initialization

2016-04-30 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49278 --- Comment #13 from Vittorio Zecca --- I think that 1 << 31 is undefined because "1" is assumed (signed) int. Maybe it should be 1u << 31 ? Anyway on 6.1.0 I have no runtime error message.

[Bug other/69412] bootstrap-ubsan profiledbootstrap issues

2016-05-01 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69412 --- Comment #5 from Vittorio Zecca --- Bug in comment 4 still in gcc 7

[Bug debug/67482] dwarf2out.c sanitizer detects undefined behaviour negation of -9223372036854775808

2016-05-08 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67482 --- Comment #3 from Vittorio Zecca --- I confirm I cannot reproduce it on 6.1.0 nor 7

[Bug debug/67482] dwarf2out.c sanitizer detects undefined behaviour negation of -9223372036854775808

2016-05-08 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67482 --- Comment #5 from Vittorio Zecca --- Running the sanitized version of gcc against the testsuite I got no runtime error in dwarf2out.c So I believe this issue can be closed as FIXED.

[Bug fortran/71027] New: -fsanitize=address catches out of bounds access on assumed size array only with -O0

2016-05-09 Thread zeccav at gmail dot com
Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- ! -fsanitize=address -O0 catches out of bounds access on assumed size array ! any other optimization level, even -Og

[Bug fortran/71027] -fsanitize=address catches out of bounds access on assumed size array only with -O0

2016-05-09 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71027 --- Comment #2 from Vittorio Zecca --- Yes, you are right, and probably in real programs the subroutine would not be optimized away. Thank you for the explanation.

[Bug rtl-optimization/67483] combine.c sanitizer detects undefined negative left shift

2016-05-10 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67483 --- Comment #2 from Vittorio Zecca --- Yes I confirm it is in trunk: ../../gcc7/gcc/combine.c:7727:40: runtime error: shift exponent -1 is negative combine.c:7727 is "& unsigned HOST_WIDE_INT) 1 << count)) - 1)) == 0" count==-1 ?

[Bug middle-end/70877] [MPX] ICE in in convert_move

2016-05-10 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70877 --- Comment #2 from Vittorio Zecca --- I confirm fixed in 6.1.0 and trunk. Thank you!

[Bug tree-optimization/70876] ICE in chkp_find_bounds: Unexpected tree code with_size_expr

2016-05-11 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70876 --- Comment #4 from Vittorio Zecca --- Will you please check gcc 6.1 with your fix against bug 70877? I get an ICE, could it be a regression? gcc -fcheck-pointer-bounds -mmpx gccerr36.c gccerr36.c: In function ‘bar’: gccerr36.c:12:8: warning:

[Bug c/71074] New: combine.c in simplify_comparison sanitizer detects left shift of negative value

2016-05-11 Thread zeccav at gmail dot com
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- /* gcc -O2 sanitizer undefined runtime error */ /* In gcc trunk 7.0 */ /* ../../gcc7/gcc/combine.c:12340:18: runtime error: left

[Bug c/71074] combine.c in simplify_comparison sanitizer detects left shift of negative value

2016-05-11 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71074 Vittorio Zecca changed: What|Removed |Added Severity|normal |minor

[Bug fortran/67497] data.c sanitizer runtime error: null pointer passed as argument 2, which is declared to never be null

2016-05-12 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67497 --- Comment #5 from Vittorio Zecca --- Still in trunk: ../../gcc7/gcc/fortran/data.c:191:32: runtime error: null pointer passed as argument 2, which is declared to never be null here: memcpy (&dest[start], rvalue->value.character.string, len *

[Bug libstdc++/70722] include_next in cmath skips user-defined wrapper

2016-05-13 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70722 --- Comment #7 from Vittorio Zecca --- Yes, this fixed my problem with mozilla firefox compilation, Thank you!

[Bug c++/71158] New: ICE in tree_to_uhwi with -fsanitize=address

2016-05-17 Thread zeccav at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Compiling the following with g++ -fsanitize=address int main() { int offset=1; char buf[offset]=""; } I get the following: p.C:5:1: internal compiler error: in tree_t

<    1   2   3   4   5   6   >