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
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
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,
: 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
: 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
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
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
-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
: 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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635
Chris Uzdavinis changed:
What|Removed |Added
CC||cuzdav at gmail dot com
--- Comment
: 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
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
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
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
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
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
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
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
++
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
: 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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106044
--- Comment #1 from Chris Uzdavinis ---
only in c++20, too.
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
: 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
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
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
: 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
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107532
Chris Uzdavinis changed:
What|Removed |Added
CC||cuzdav at gmail dot com
--- Comment
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
: unassigned at gcc dot gnu.org
Reporter: cuzdav at gmail dot com
Target Milestone: ---
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
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
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
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.)
: 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
36 matches
Mail list logo