[Bug c++/38799] New: using declaration appears to hide local declaration

2009-01-10 Thread cuzdav at gmail dot com
ide ‘A’ void A::f(int a) {} int main() { A::f(1); } -- Summary: using declaration appears to hide local declaration Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: cuzdav at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38799

[Bug c++/94624] New: Nested lambda mutable capture of outer lambda non-mutable capture is not allowed

2020-04-16 Thread cuzdav at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- An inner mutable lambda with a simple copy-capture of the outer lambda's immutable variable is not allowed to be mod

[Bug c++/96592] New: Tuple element w/ member reference to incomplete template type rejected

2020-08-12 Thread cuzdav at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- Created attachment 49049 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49049&action=edit source as shown in preview,

[Bug c++/97053] New: an O3 codegen bug

2020-09-14 Thread cuzdav at gmail dot com
: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- Created attachment 49217 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49217&action=edit preprocessed code in case something changes after submitting "Wrong" output codegen bug

[Bug c++/91465] New: unexpected expression of kind overload (ICE)

2019-08-15 Thread cuzdav at gmail dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- This code results in an ICE: In member function 'Destination Bar::baz(Source)': internal compiler error: unexpected expression 'foo' of kind overload

[Bug c++/90301] New: RangeV3 usage, ICE internal compiler error: canonical types differ for identical types

2019-05-01 Thread cuzdav at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- Created attachment 46270 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46270&action=edit full outp

[Bug c++/87921] New: Incorrect error "storage size of [array] isn't known (when it is)

2018-11-07 Thread cuzdav at gmail dot com
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- I'm getting an error for what I believe to be valid code. Here's a complete, minimal exa

[Bug tree-optimization/80726] New: Destructor not inlined anymore (regression)

2017-05-12 Thread cuzdav at gmail dot com
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- Inlining regression with noexcept(true) destructor that could possible throw, but doesn't. This code demonstrates that in main(), the destructor for Foo is no l

[Bug tree-optimization/80275] New: Poor (but valid) code generated by optimizer passing optimizer list to function

2017-03-31 Thread cuzdav at gmail dot com
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- Codegen regression from the 5.x series of g++. After 6.1, g++ produces poor code for f2() below, when it

[Bug tree-optimization/80635] [8/9/10/11 regression] std::optional and bogus -Wmaybe-uninitialized warning

2020-10-15 Thread cuzdav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635 Chris Uzdavinis changed: What|Removed |Added CC||cuzdav at gmail dot com --- Comment

[Bug c++/105386] New: Tuple in unevaluated context is instantiated; creates reference to void

2022-04-25 Thread cuzdav at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- Created attachment 52878 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52878&action=edit preprocessed code Starting

[Bug analyzer/107725] New: Spurious warning: use of uninitialized value with std::any

2022-11-16 Thread cuzdav at gmail dot com via Gcc-bugs
Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- Created attachment 53914 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53914&action=edit preprocessed code With the a

[Bug analyzer/107725] Spurious warning: use of uninitialized value with std::any

2022-11-16 Thread cuzdav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107725 --- Comment #1 from Chris Uzdavinis --- I get a similar warning with this code. Unsure if it's the same underlying issue. Also does not warn with g++10 or g++11, but does with newer versions. #include #include std::string create() { st

[Bug analyzer/107725] Spurious warning: use of uninitialized value with std::any

2022-11-16 Thread cuzdav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107725 --- Comment #3 from Chris Uzdavinis --- Ah, sorry I didn't realize that. Its use was suggested by Jason Turner in his most recent C++ Weekly so I started to give it a try. Perhaps there will be an influx of such premature reports since it was

[Bug tree-optimization/107852] New: Spurious warnings stringop-overflow and array-bounds copying data as bytes into vector

2022-11-23 Thread cuzdav at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- Created attachment 53957 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53957&acti

[Bug c++/105511] New: Spurious warning: "expected 'template' keyword..." when lt and gt compare over ternary

2022-05-06 Thread cuzdav at gmail dot com via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- Only on g++ 12 (new warning). Building with the freshly released G++12 with warning enab

[Bug c++/105571] New: Spurious "set but not used" on static constexpr local, used in lambda

2022-05-11 Thread cuzdav at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- With -Wall, in every c++ language level on virtually every version of g++ as far back as 4.9, g++ warns ("variabl

[Bug c++/105589] New: [ICE] templated type alias over std::array with bound type in template function fails

2022-05-12 Thread cuzdav at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- Created attachment 52969 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52969&action=edit preprocess

[Bug c++/105726] New: spurious warning with -Warray-bounds

2022-05-24 Thread cuzdav at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- Created attachment 53030 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53030&action=edit preprocessed version I just ran into an issue that seems to have appeared in Gcc 1

[Bug tree-optimization/106044] New: Spurious warning: -Wrestrict for adding std::strings (__builtin_memcpy)

2022-06-21 Thread cuzdav at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- Created attachment 53182 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53182&action=edit preprocess

[Bug tree-optimization/106044] Spurious warning: -Wrestrict for adding std::strings (__builtin_memcpy)

2022-06-21 Thread cuzdav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106044 --- Comment #1 from Chris Uzdavinis --- only in c++20, too.

[Bug tree-optimization/106044] Spurious warning: -Wrestrict for adding std::strings (__builtin_memcpy)

2022-06-21 Thread cuzdav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106044 --- Comment #2 from Chris Uzdavinis --- Even marginally simpler: #include auto f() { return "_" + std::string(" "); } Originally I marked it as tree-optimization since it's only with -O3, but it could be an issue in the standard library

[Bug libstdc++/106275] New: unordered_map with std::string key, std::hash, and custom equality predicate weirdness

2022-07-12 Thread cuzdav at gmail dot com via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- g++12.1 (on linux), Does not occur on GCC 11 or earlier. std::unordered_map, CustomPred

[Bug libstdc++/106275] unordered_map with std::string key, std::hash, and custom equality predicate weirdness

2022-07-12 Thread cuzdav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106275 --- Comment #1 from Chris Uzdavinis --- Created attachment 53293 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53293&action=edit preprocessed code

[Bug libstdc++/106275] unordered_map with std::string key, std::hash, and custom equality predicate weirdness

2022-07-13 Thread cuzdav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106275 --- Comment #6 from Chris Uzdavinis --- Thank you for the information. If the equality comparison function is slow enough, the large number of extra calls may not be an optimization. While looking into it, the vastly different runtime behavi

[Bug c++/110810] New: ICE in check_noexcept_r, at cp/except.cc:1068

2023-07-25 Thread cuzdav at gmail dot com via Gcc-bugs
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- Created attachment 55634 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55634&action=edit preprocessed code, zipped Starting with x86_64 version of gcc 12.1 (linu

[Bug c++/111742] New: Misaligned generated code with MI using aligned virtual base

2023-10-09 Thread cuzdav at gmail dot com via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- Generated code is misaligned (and crashes in slightly more complex code), in trunk all the way back to gcc 8.1, when built in c++11 or higher

[Bug c++/111742] Misaligned generated code with MI using aligned virtual base

2023-10-09 Thread cuzdav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111742 --- Comment #2 from Chris Uzdavinis --- No, this is not a ubsan report. Code *crashes* and I thought showing the UBsan warning was enough to demonstrate it. A minimal change to make the code crash instead of just report ubsan errors: struct X

[Bug c++/107532] [13 Regression] -Werror=dangling-reference false positives in libcamera-0.0.1

2023-04-27 Thread cuzdav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107532 Chris Uzdavinis changed: What|Removed |Added CC||cuzdav at gmail dot com --- Comment

[Bug c++/114706] New: ICE - std::bit_cast in consteval function involving union

2024-04-12 Thread cuzdav at gmail dot com via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- ICE in a consteval function bit_casting an array of unions. The code isn't valid due to the union, but the compiler is not handling it pro

[Bug c++/110620] New: spurious array-bounds

2023-07-10 Thread cuzdav at gmail dot com via Gcc-bugs
: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: ---

[Bug tree-optimization/110620] spurious array-bounds

2023-07-10 Thread cuzdav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110620 --- Comment #1 from Chris Uzdavinis --- Starting with Gcc12.1 (at least on x86) and through all versions up to the trunk (post 13.1) This warning hits with optimization -O2 or higher. https://godbolt.org/z/q3T39Wf8c #include void fo

[Bug tree-optimization/110620] spurious array-bounds

2023-07-10 Thread cuzdav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110620 --- Comment #2 from Chris Uzdavinis --- Created attachment 55516 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55516&action=edit preprocessed code

[Bug tree-optimization/110620] spurious array-bounds

2023-07-10 Thread cuzdav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110620 --- Comment #3 from Chris Uzdavinis --- Starting with Gcc12.1 (at least on x86) and through all versions up to the trunk (post 13.1) This warning hits with optimization -O2 or higher. https://godbolt.org/z/q3T39Wf8c #include void fo

[Bug tree-optimization/110620] spurious array-bounds

2023-07-10 Thread cuzdav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110620 --- Comment #4 from Chris Uzdavinis --- (Sorry I was getting bugzilla errors about collisions when adding comments, but they seemed to have gone through after all.)

[Bug tree-optimization/117612] New: spaceship codegen is inferior to hand written operator when comparing doubles

2024-11-15 Thread cuzdav at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: cuzdav at gmail dot com Target Milestone: --- Codegen for using spaceship operator is not as good as normal operators with obvious implementations with -std=c