[Bug tree-optimization/94021] -Wformat-truncation false positive due to excessive integer range

2020-03-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94021 --- Comment #7 from Martin Sebor --- Since the merge with the sprintf pass, the strlen pass has an instance of EVRP that it passes to sprintf to get range info from (it also uses it itself in places).

[Bug tree-optimization/83733] -Wformat-overflow false positive for %d on bounded integer when inlining

2020-03-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83733 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/81401] False positive sprintf warning at O2 (-Wformat-overflow)

2020-03-04 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Resolution|--- |FIXED --- Comment #4 from Martin Sebor --- Neither test case triggers the warning in GCC 10. Bisection points to r269115 as the fix.

[Bug tree-optimization/85741] [meta-bug] bogus/missing -Wformat-overflow

2020-03-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85741 Bug 85741 depends on bug 81401, which changed state. Bug 81401 Summary: False positive sprintf warning at O2 (-Wformat-overflow) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81401 What|Removed |Added ---

[Bug tree-optimization/80776] -Wformat-overflow false positive for %d on integer bounded by __builtin_unreachable

2020-03-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80776 Martin Sebor changed: What|Removed |Added Last reconfirmed|2017-05-16 00:00:00 |2020-3-4 See Also|

[Bug middle-end/94004] [8/9/10 Regression] missing -Walloca on calls to alloca due to -Wno-system-headers

2020-03-04 Thread msebor at gcc dot gnu.org
||2020-03-04 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Ever confirmed|0 |1

[Bug middle-end/94004] [8/9/10 Regression] missing -Walloca on calls to alloca due to -Wno-system-headers

2020-03-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94004 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #6 from Martin Sebor -

[Bug middle-end/92478] [8 Regression] ICE on strcpy referencing an element of a static local constant array

2020-03-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92478 Martin Sebor changed: What|Removed |Added Summary|[8 Regression] ICE: |[8 Regression] ICE on |

[Bug tree-optimization/93986] [10 Regression] ICE in decompose, at wide-int.h:984 since r10-5451

2020-03-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93986 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/94015] [10 Regression] Another assignment incorrectly omitted by -foptimize-strlen

2020-03-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94015 --- Comment #6 from Martin Sebor --- (In reply to Nate Eldredge from comment #4) A compile-time only test that doesn't depend on the target or endianness would be much better than a runtime test that fails only on a subset of targets. The way t

[Bug c++/90938] [9 Regression] Initializing array with {1} works, but not {0}

2020-03-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90938 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/82689] merging writes of different types to the same location

2020-03-04 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Known to fail||10.0, 7.3.0, 8.2.0, 9.1.0 --- Comment #2 from Martin Sebor --- Reconfirmed for GCC 10.

[Bug c/94055] Segmentation fault in memet function

2020-03-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94055 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #2

[Bug tree-optimization/86691] missing -Warray-bounds on a const array due to early folding of out-of-bounds accesses

2020-03-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86691 Martin Sebor changed: What|Removed |Added Summary|missing -Warray-bounds due |missing -Warray-bounds on a

[Bug c/94040] [9/10 Regression] ICE in get_constant, at c-family/c-format.c:325 (error: 'format' attribute argument 2 value '3' refers to parameter type 'int *')

2020-03-05 Thread msebor at gcc dot gnu.org
|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org --- Comment #3 from Martin Sebor --- GCC accepts the invalid redeclaration of the built-in. GCC 8 silently, but GCC 9 and 10 diagnose it albeit only with -Wextra (see below

[Bug middle-end/90959] hash_map can be copied but leads to a double-free after assignment

2020-03-05 Thread msebor at gcc dot gnu.org
at gcc dot gnu.org |msebor at gcc dot gnu.org --- Comment #3 from Martin Sebor --- I can put together a patch to define the assignment. Containers need to be assignable in order to be used as elements in other containers or as members of classes/structs that are. Otherwise, the limitation

[Bug c/94040] [9/10 Regression] ICE on a call to an invalid redeclaration of strftime

2020-03-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94040 Martin Sebor changed: What|Removed |Added Keywords||patch Summary|[9/10 Regression

[Bug c++/94078] New: bogus and missing -Wmismatched-tags on an instance of a template

2020-03-06 Thread msebor at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The test case below shows GCC gets confused by the declarations of the template instances below: it issues -Wmismatched-tags for the wrong

[Bug c/94106] New: error on a function redeclaration with attribute transaction_safe

2020-03-09 Thread msebor at gcc dot gnu.org
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- Of the six declarations below each is accepted on its own. The latter two redeclarations are accepted as well, but the first redeclaration

[Bug c/94106] [8/9/10 Regression] error on a function redeclaration with attribute transaction_safe

2020-03-09 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94106 Martin Sebor changed: What|Removed |Added Summary|error on a function |[8/9/10 Regression] error

[Bug other/94108] New: transaction memory attributes not documented

2020-03-09 Thread msebor at gcc dot gnu.org
: other Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC exposes a number of attributes for transactional memory (see below) but the documentation doesn't mention any of them. The list of attributes from c-family/c-attr

[Bug c++/94098] [10 Regression] ICE: canonical types differ for identical types 'int(void*, void*)' and 'int(void*, void*)'

2020-03-09 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94098 Martin Sebor changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org

[Bug c++/94112] Please add a warning for potentially throwing code in noexcept function

2020-03-10 Thread msebor at gcc dot gnu.org
|1 Last reconfirmed||2020-03-10 CC||msebor at gcc dot gnu.org Blocks||87403 --- Comment #1 from Martin Sebor --- Confirmed with the output below. -Wterminate is fully

[Bug c++/94132] Valid usage of flexible array member failing to compile

2020-03-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94132 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Blocks|

[Bug c++/69698] [meta-bug] flexible array members

2020-03-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69698 Bug 69698 depends on bug 94132, which changed state. Bug 94132 Summary: Valid usage of flexible array member failing to compile https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94132 What|Removed |Added

[Bug tree-optimization/94131] [10 Regression] ICE: tree check: expected integer_cst, have plus_expr in get_len, at tree.h:5927 since r10-2814-g22fca489eaf98f26

2020-03-11 Thread msebor at gcc dot gnu.org
-invalid-code |ice-on-valid-code Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org --- Comment #4 from Martin Sebor --- The code looks valid to me. It may be undefined because of the missing initialization but with the VLA initialized the ICE is still there

[Bug c++/94159] New: parse error on a declaration of a dependent class using a class-key instead of typename

2020-03-12 Thread msebor at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The declaration of the q member below is rejected with a parse error, suggesting GCC is confused about what's

[Bug c/84919] [8/9 Regression] error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict]

2020-03-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84919 --- Comment #23 from Martin Sebor --- I think that's a question for the release managers. I thought they like to keep regressions open until all the affected branches have closed, but I could be wrong. One way to find out is to close it and let

[Bug middle-end/94169] New: warn for modifying getenv() result

2020-03-13 Thread msebor at gcc dot gnu.org
-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- Bug 94157 was caused by modifying the string pointed to by the value returned from getenv(), which is undefined according to both C and POSIX. C11 says in 7.22.4.8, p4: The

[Bug c/94040] [9 Regression] ICE on a call to an invalid redeclaration of strftime

2020-03-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94040 Martin Sebor changed: What|Removed |Added Known to fail|10.0, 9.2.0 |9.3.0 Summary|[9/10 Regression

[Bug c/94171] New: attribute silently ignored on redeclarations of a typedef

2020-03-13 Thread msebor at gcc dot gnu.org
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The attribute machinery silently drops attributes from subsequent type definitions. The test case below shows this with attribute nonnull but other

[Bug middle-end/94195] New: missing warning reading a smaller object via an lvalue of a larger type

2020-03-16 Thread msebor at gcc dot gnu.org
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The following test case was derived from PR 94187. The past-the-end store in f() is diagnosed by -Wstringop-overflow as

[Bug middle-end/90404] No warning on attempts to modify a const object

2020-03-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90404 Martin Sebor changed: What|Removed |Added Target Milestone|--- |11.0 Component|c

[Bug c/94196] Multiple issues with attributes

2020-03-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94196 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org See

[Bug c++/80495] attribute [[noreturn]] is accepted in function pointer declarations

2020-03-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80495 Martin Sebor changed: What|Removed |Added Known to fail|9.0 |10.0, 9.2.0 Last reconfirmed|2018-09-14

[Bug c++/81692] Bogus noreturn warning

2020-03-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81692 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org Known to

[Bug middle-end/90404] No warning on attempts to modify a const object

2020-03-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90404 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug middle-end/94169] warn for modifying getenv() result

2020-03-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94169 Martin Sebor changed: What|Removed |Added Blocks|88781 | --- Comment #1 from Martin Sebor --- On

[Bug middle-end/94169] warn for modifying getenv() result

2020-03-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94169 --- Comment #2 from Martin Sebor --- Other C standard functions that return a pointer to an unmodifiable object: localeconv(), setlocale(), strerror() In addition, stdin, stdout, and stderr could be marked as pointing to read-only (although u

[Bug middle-end/94208] New: missing warning on passing unterminated local array to string functions

2020-03-17 Thread msebor at gcc dot gnu.org
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC 10 diagnoses only one out of the three invalid uses of the unterminated array below. The strlen pass "knows"

[Bug ipa/92799] [8/9 Regression] ICE on a weakref function definition followed by a declaration

2020-03-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92799 Martin Sebor changed: What|Removed |Added Known to work||10.0 Summary|[8/9/10 Regressio

[Bug tree-optimization/94131] [10 Regression] ICE: tree check: expected integer_cst, have plus_expr in get_len, at tree.h:5927 since r10-2814-g22fca489eaf98f26

2020-03-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94131 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #5 from Martin Sebor -

[Bug c++/94098] [10 Regression] ICE: canonical types differ for identical types 'int(void*, void*)' and 'int(void*, void*)'

2020-03-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94098 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #3 from Martin Sebor -

[Bug middle-end/94226] [10 regression] r10-7272 eliminated some warning messages

2020-03-19 Thread msebor at gcc dot gnu.org
|NEW Ever confirmed|0 |1 CC||msebor at gcc dot gnu.org Keywords||diagnostic Last reconfirmed||2020-03-19 --- Comment #1 from Martin Sebor

[Bug c++/94078] bogus and missing -Wmismatched-tags on an instance of a template

2020-03-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94078 Martin Sebor changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org

[Bug c/94239] [10 regression] cc1 SEGV in get_location_from_adhoc_loc with gcc.dg/pr20245-1.c etc.

2020-03-20 Thread msebor at gcc dot gnu.org
|1 Last reconfirmed||2020-03-20 CC||msebor at gcc dot gnu.org --- Comment #1 from Martin Sebor --- I noticed this on x86_64-linux as well last night in a fully bootstrapped compiler but today I can't repr

[Bug rtl-optimization/88433] wrong code for printf after a pointer cast from a pointer to an adjacent object

2020-03-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88433 Martin Sebor changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug rtl-optimization/49330] Integer arithmetic on addresses optimised with pointer arithmetic rules

2020-03-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49330 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment

[Bug middle-end/82898] Aliasing knowledge is not used to replace memmove with memcpy

2020-03-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82898 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED See Also|

[Bug c/94247] Wrong char-subscripts warning for limited-range index

2020-03-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94247 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #5

[Bug middle-end/35587] -Warray-bounds does not work at all or does not find all trivial cases, and :works only with -O2 or -O3

2020-03-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35587 Martin Sebor changed: What|Removed |Added Last reconfirmed|2008-03-17 14:05:57 |2020-3-23 Known to fail|

[Bug c/94247] Wrong char-subscripts warning for limited-range index

2020-03-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94247 --- Comment #7 from Martin Sebor --- (In reply to Jakub Jelinek from comment #6) > No, it diagnoses the main bug Nope, it does not. -Wchar-subscripts is designed and documented to diagnose a common cause of a bug. The actual bug itself (which,

[Bug middle-end/94312] New: missing -Wreturn-local-addr on returning local address via memchr

2020-03-24 Thread msebor at gcc dot gnu.org
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- -Wreturn-local-addr diagnoses only the first function below. It misses the same problem in the second function. The root cause is

[Bug middle-end/94312] missing -Wreturn-local-addr on returning local address via memchr or memset

2020-03-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94312 Martin Sebor changed: What|Removed |Added Summary|missing -Wreturn-local-addr |missing -Wreturn-local-addr

[Bug middle-end/94313] New: stores into string literals sometimes silently eliminated

2020-03-24 Thread msebor at gcc dot gnu.org
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- Modifying a const-qualified object or a string literal is undefined in both C and C++ and can result in subtle bugs. Detecting attempts to

[Bug middle-end/90404] No warning on attempts to modify a const object

2020-03-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90404 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug middle-end/94313] stores into string literals sometimes silently eliminated

2020-03-25 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94313 --- Comment #2 from Martin Sebor --- Removing invalid code not isn't wrong (as in non-conforming), but it's decidedly unhelpful in avoiding the undefined behavior that doesn't necessarily go away just because the invalid statement is gone. It ma

[Bug middle-end/94004] [8/9 Regression] missing -Walloca on calls to alloca due to -Wno-system-headers

2020-03-25 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94004 Martin Sebor changed: What|Removed |Added Known to work||10.0 Summary|[8/9/10 Regressio

[Bug middle-end/94313] stores into string literals sometimes silently eliminated

2020-03-25 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94313 --- Comment #4 from Martin Sebor --- An implementation is free to do whatever it wants when it finds invalid/undefined code. A quality implementation will also let the user know about it so it can be fixed. An even better one will let the user

[Bug tree-optimization/94335] False positive -Wstringop-overflow warning with -O2

2020-03-25 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org --- Comment #1 from Martin Sebor --- This type of warning is new GCC 10; it was added in the commit below. It works as designed here. It sees the following IL (the memset calls don't do anything). The MEM[] = 65; statement is what trigge

[Bug tree-optimization/94335] False positive -Wstringop-overflow warning with -O2

2020-03-26 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94335 --- Comment #5 from Martin Sebor --- Few middle-end warnings consider control flow -- most simply look at a single statement at a time and consider ranges of argument values (if any). Those that do consider control flow (e.g., -Wreturn-local-add

[Bug c/94338] struct member alignment is not carried over to alignment of struct variable

2020-03-26 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94338 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org

[Bug c++/94346] [9/10 Regression] ICE due to handle_copy_attribute since r9-3982

2020-03-26 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94346 Martin Sebor changed: What|Removed |Added Keywords||ice-on-valid-code --- Comment #2 from Mar

[Bug c++/94346] [9/10 Regression] ICE due to handle_copy_attribute since r9-3982

2020-03-26 Thread msebor at gcc dot gnu.org
||10.0, 9.2.0 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org --- Comment #3 from Martin Sebor --- The change below avoids the ICE with no regressions in the attribute or warning tests: diff --git a/gcc/c-family/c-attribs.c b/gcc/c-family/c

[Bug c++/94346] [9/10 Regression] ICE due to handle_copy_attribute since r9-3982

2020-03-26 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94346 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #5 from Martin Sebor -

[Bug c++/94098] [10 Regression] ICE: canonical types differ for identical types 'int(void*, void*)' and 'int(void*, void*)'

2020-03-27 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94098 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/94346] [9 Regression] ICE due to handle_copy_attribute since r9-3982

2020-03-27 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94346 Martin Sebor changed: What|Removed |Added Known to work||10.0 Summary|[9/10 Regression]

[Bug c++/93824] bogus -Wredundant-tags on a first declaration in use

2020-03-27 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93824 Martin Sebor changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/94078] bogus and missing -Wmismatched-tags on an instance of a template

2020-03-27 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94078 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/94374] New: modification of constant scalars sometimes eliminated, sometimes not

2020-03-27 Thread msebor at gcc dot gnu.org
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- Similar to pr94313, the test case below shows that GCC silently eliminates some statements that modify const scalars

[Bug tree-optimization/94374] modification of constant scalars sometimes eliminated, sometimes not

2020-03-27 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94374 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c/94379] Feature request: like clang, support __attribute((__warn_unused_result__)) on structs, unions, and enums

2020-03-28 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Ever confirmed|0 |1 Severity|normal |enhancement Status|UNCONFIRMED |NEW --- Comment #1 from Martin Sebor --- Confirmed. C2X will likely have the same

[Bug tree-optimization/94416] New: passing a restricted pointer to a function can be assumed not to modify an accessed object

2020-03-30 Thread msebor at gcc dot gnu.org
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- In the test case below, the subtraction can safely be folded to zero because a is a restricted

[Bug c/94428] Reintroduce -Wzero-length-array

2020-04-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94428 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org

[Bug c/94444] __attribute__((access(...))) ignored for memcpy when compiling with -Os

2020-04-01 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Ever confirmed|0 |1 Status|UNCONFIRMED |WAITING --- Comment #2 from Martin Sebor --- Can you include a small test case that reproduce the problem (and the full command line used to reproduce it

[Bug c/94444] __attribute__((access(...))) ignored for memcpy when compiling with -Os

2020-04-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=9 Martin Sebor changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug c++/94510] [9/10 Regression] nullptr_t implicitly cast to zero twice in std::array

2020-04-07 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94510 Martin Sebor changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org

[Bug c++/94510] [9/10 Regression] nullptr_t implicitly cast to zero twice in std::array

2020-04-07 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94510 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #10 from Martin Sebor

[Bug middle-end/94527] RFE: Add an __attribute__ that marks a function as freeing an object

2020-04-08 Thread msebor at gcc dot gnu.org
|--- |11.0 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org CC||msebor at gcc dot gnu.org --- Comment #7 from Martin Sebor --- I've actually been experimenting with this for GCC 11 as an extensi

[Bug preprocessor/94535] __LINE__ value changed for function-like macro invocations spanning multiple lines

2020-04-08 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94535 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #7

[Bug preprocessor/94535] __LINE__ value changed for function-like macro invocations spanning multiple lines

2020-04-08 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94535 --- Comment #11 from Martin Sebor --- Fred, the author of the paper, usually tests a number of compilers. In the paper referenced from n2322 he mentions a bunch: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1911.htm

[Bug c++/94568] New: template specialization of equivalent nontype template argument involving member pointer considered distinct

2020-04-12 Thread msebor at gcc dot gnu.org
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- I believe the two definitions of XB below are the same and should be accepted. GCC for some

[Bug middle-end/94580] New: missing warning accessing an interior flexible array member

2020-04-13 Thread msebor at gcc dot gnu.org
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- In the following (invalid) test case -Warray-bounds only diagnoses one of the four out-of-bounds references, although it eliminates the

[Bug middle-end/94580] missing warning accessing an interior flexible array member

2020-04-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94580 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Blocks|

[Bug c/92326] [10 Regression] wrong bound in zero-length array diagnostics

2020-04-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92326 Martin Sebor changed: What|Removed |Added Summary|wrong bound in zero-length |[10 Regression] wrong bound

[Bug bootstrap/92828] array out of bounds access in libcpp/mkdeps.c

2020-04-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92828 Martin Sebor changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug target/84328] [8/9/10 Regression] -finline-small-functions and inline keyword lead to slowdown since version 6

2020-04-13 Thread msebor at gcc dot gnu.org
||2020-04-13 Status|UNCONFIRMED |WAITING CC||msebor at gcc dot gnu.org --- Comment #7 from Martin Sebor --- Waiting for a response to Martin's comment #4.

[Bug middle-end/57974] std::pow(std::complex(0),1) returns (-nan,-nan)

2020-04-13 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Ever confirmed|0 |1 Last reconfirmed||2020-04-13 --- Comment #21 from Martin Sebor --- This is still unconfirmed, 7 years after it was reported. If there is an outstanding bug it should be

[Bug driver/19856] GCC_EXEC_PREFIX used wrong

2020-04-13 Thread msebor at gcc dot gnu.org
|1 CC||msebor at gcc dot gnu.org Status|UNCONFIRMED |WAITING --- Comment #4 from Martin Sebor --- I this (still) a problem today (if so, let's confirm it), otherwise let's resolve it one way or the other.

[Bug c++/90629] Support for -Wmismatched-new-delete

2020-04-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90629 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org Ever

[Bug c++/78104] optimizer doesn't grok C++ new/delete yet

2020-04-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78104 Martin Sebor changed: What|Removed |Added CC||bugzilla@poradnik-webmaster

[Bug c++/87732] Detect and eliminate unnecessary new/delete pairs

2020-04-13 Thread msebor at gcc dot gnu.org
|--- |DUPLICATE See Also||https://gcc.gnu.org/bugzill ||a/show_bug.cgi?id=90629 CC||msebor at gcc dot gnu.org --- Comment #4 from Martin Sebor --- Per

[Bug tree-optimization/30334] [meta-bug] Request for -Wundefined

2020-04-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30334 Bug 30334 depends on bug 81172, which changed state. Bug 81172 Summary: Expected new warning option -Warray-bounds-pointer-arithmetic https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81172 What|Removed |Added --

[Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds

2020-04-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456 Bug 56456 depends on bug 81172, which changed state. Bug 81172 Summary: Expected new warning option -Warray-bounds-pointer-arithmetic https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81172 What|Removed |Added --

[Bug middle-end/81172] Expected new warning option -Warray-bounds-pointer-arithmetic

2020-04-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81172 Martin Sebor changed: What|Removed |Added Known to work||10.0 Resolution|---

[Bug c++/71218] Add a warning about "new T[integer-literal]"

2020-04-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71218 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #4

[Bug tree-optimization/49716] internal compiler error: in new_Cloog_Domain_from_ppl_Pointset_Powerset

2020-04-13 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Status|UNCONFIRMED |RESOLVED --- Comment #4 from Martin Sebor --- I can't reproduce an ICE with the attached translation unit so based on that and on comment #3 resolving as worksforsome. Please reopen if it persists

[Bug target/44004] gcc 4.5.0 vms-gcc_shell_handler.c needs #define __NEW_STARLET‏

2020-04-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44004 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org

[Bug c++/83028] Incorrect -Wsequence-point warning in correct C++17 code with new evaluation order rules

2020-04-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83028 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org Last

[Bug tree-optimization/30334] [meta-bug] Request for -Wundefined

2020-04-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30334 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment

  1   2   3   4   5   6   7   8   9   10   >