[Bug c++/99493] Address of template parameter object is not a valid template argument

2021-03-14 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99493 --- Comment #1 from Johel Ernesto Guerrero Peña --- Slightly simplified: https://godbolt.org/z/rv97Gh. ```C++ struct A{}; templateconstexpr const A*tpo{&a}; templatestruct B{}; B>b; ``` ``` :4:10: error: the address of 'A{}' is not a valid templa

[Bug c++/99589] New: lambda init-capture without initializer in C++20

2021-03-14 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99589 Bug ID: 99589 Summary: lambda init-capture without initializer in C++20 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c+

[Bug c/99588] New: variable set but not used warning on static _Atomic assignment

2021-03-14 Thread godmar at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99588 Bug ID: 99588 Summary: variable set but not used warning on static _Atomic assignment Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug c/99587] New: warning: ‘retain’ attribute ignored while __has_attribute(retain) is true

2021-03-14 Thread i at maskray dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99587 Bug ID: 99587 Summary: warning: ‘retain’ attribute ignored while __has_attribute(retain) is true Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug rtl-optimization/89965] [8 Regression] wrong code with -O -mtune=nano-x2 -fcaller-saves -fexpensive-optimizations -fno-tree-dce -fno-tree-ter

2021-03-14 Thread williambader at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89965 --- Comment #18 from William Bader --- I did a bisection for the bug from my previous comment (which is still present in the current gcc 11 in master): 058e97ecf33ad0dfd926b3876a4bcf59ac9556ff is the first bad commit commit 058e97ecf33ad0dfd926b

[Bug c++/99586] New: Use of class template identifier checked for CTAD before instantiation

2021-03-14 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99586 Bug ID: 99586 Summary: Use of class template identifier checked for CTAD before instantiation Product: gcc Version: 11.0 URL: https://godbolt.org/z/4KWWjT

[Bug c++/97476] Use of NTTP placeholder checked for CTAD before instantiation

2021-03-14 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97476 Johel Ernesto Guerrero Peña changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolutio

[Bug middle-end/99578] gcc-11 -Warray-bounds or -Wstringop-overread warning when accessing a pointer from integer literal

2021-03-14 Thread arnd at linaro dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99578 --- Comment #6 from Arnd Bergmann --- I figured out the qnx4 warning in the end: https://godbolt.org/z/hvqjr3 struct qnx4_inode_entry { char di_status; union { struct { char di_fname[16]; char di_pad[32];

[Bug c++/70816] bogus error __builtin_strcmp is not a constant expression in a constexpr function

2021-03-14 Thread arthur.j.odwyer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70816 Arthur O'Dwyer changed: What|Removed |Added CC||arthur.j.odwyer at gmail dot com --- C

[Bug fortran/99585] ICE with SIZE intrinsic on nested derived type components

2021-03-14 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99585 --- Comment #2 from anlauf at gcc dot gnu.org --- Actually the SIZE intrinsic might be a red herring, as the following variant does also ICE: module m type t end type type t2 integer :: n end type t2 contains function h (x) result(

[Bug fortran/99585] ICE with SIZE intrinsic on nested derived type components

2021-03-14 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99585 --- Comment #1 from anlauf at gcc dot gnu.org --- Reduced example: module m type t end type type t2 type(t), allocatable :: my(:) end type t2 contains function h (x) result(z) class(t2) :: x(:) type(t) :: z(size(x(1)%my))

[Bug fortran/99112] [11 Regression] ICE in gfc_conv_component_ref, at fortran/trans-expr.c:2646

2021-03-14 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99112 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution|-

[Bug fortran/99585] ICE with SIZE intrinsic on nested derived type components

2021-03-14 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99585 anlauf at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P4 Keywords|

[Bug fortran/99585] New: ICE with SIZE intrinsic on nested derived type components

2021-03-14 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99585 Bug ID: 99585 Summary: ICE with SIZE intrinsic on nested derived type components Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Prior

[Bug fortran/99112] [11 Regression] ICE in gfc_conv_component_ref, at fortran/trans-expr.c:2646

2021-03-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99112 --- Comment #5 from CVS Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:c2d7c39fcb8a3cb67600cdb6fde49ecb0e951589 commit r11-7661-gc2d7c39fcb8a3cb67600cdb6fde49ecb0e951589 Author: Harald Anlauf Date: Su

[Bug c++/99047] ICE on simple task coroutine example

2021-03-14 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99047 --- Comment #2 from Iain Sandoe --- Created attachment 50385 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50385&action=edit Patch under test had omitted the conversion to bool (it seems that almost all coroutines do use a boolean type he

[Bug c++/99047] ICE on simple task coroutine example

2021-03-14 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99047 Iain Sandoe changed: What|Removed |Added Last reconfirmed||2021-03-14 Assignee|unassigned a

[Bug middle-end/99578] gcc-11 -Warray-bounds or -Wstringop-overread warning when accessing a pointer from integer literal

2021-03-14 Thread arnd at linaro dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99578 --- Comment #5 from Arnd Bergmann --- (In reply to Martin Sebor from comment #4) > Most warnings designed to detect invalid accesses (not just > -Wstringop-overread but also -Wstringop-overflow and > -Wformat-overflow/-truncation, -Wrestrict, and

[Bug fortran/99345] [11 Regression] ICE in doloop_contained_procedure_code, at fortran/frontend-passes.c:2464 since r11-2578-g27eac9ee6137a6b5

2021-03-14 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99345 Thomas Koenig changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug c++/99584] New: ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack

2021-03-14 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99584 Bug ID: 99584 Summary: ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack Product: gcc Version: 11.0 Status: UNCONFIRMED

[Bug c++/99583] New: Parameter packs not expanded in lambda noexcept specifier

2021-03-14 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99583 Bug ID: 99583 Summary: Parameter packs not expanded in lambda noexcept specifier Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Prio