Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: john.boyer at tutanota dot com
Target Milestone: ---
The following code:
int value = (value = 5, ++value);
Will produce the following warning:
: In function 'void __static_initialization_and_destruction_0(int
++
Assignee: unassigned at gcc dot gnu.org
Reporter: john.boyer at tutanota dot com
Target Milestone: ---
The following code:
struct final;
struct test
{
virtual auto foo() -> int final;
};
Generates this error:
error: two or more data types in declaration of 't
++
Assignee: unassigned at gcc dot gnu.org
Reporter: john.boyer at tutanota dot com
Target Milestone: ---
Given the following code:
enum class foo
{
bar,
baz,
};
int func(foo f)
{
switch (f)
{
case foo::bar:
return 5;
case foo::baz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91950
--- Comment #3 from John Boyer ---
Actually, I believe Jonathan is correct. I misread the CWG. The "range" of an
enum class has nothing to do with how many enumerators it has.
++
Assignee: unassigned at gcc dot gnu.org
Reporter: john.boyer at tutanota dot com
Target Milestone: ---
With the following function signature (that is within a struct):
void compute(int *__restrict x) { /* ... */ }
Adding an additional __restrict for the this pointer as
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89859
--- Comment #2 from John Boyer ---
(In reply to Andrew Pinski from comment #1)
> _ZN4test7computeEPi.isra.0: // non-restrict
> .LFB2:
> .cfi_startproc
> ldr x3, [x0]
> mov w4, 99
> ldr w2, [x0, 8]
>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89859
--- Comment #4 from John Boyer ---
(In reply to Andrew Pinski from comment #3)
> (In reply to John Boyer from comment #2)
> > Hey, what did you use to obtain that assembly? Also, is there anyway to
> > display this in godbolt instead of the CISC
++
Assignee: unassigned at gcc dot gnu.org
Reporter: john.boyer at tutanota dot com
Target Milestone: ---
Example: https://godbolt.org/z/MLZAA6.
Why is the push/lea/leave necessary? Shouldn't modifying the stack pointer be
enough?
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: john.boyer at tutanota dot com
Target Milestone: ---
Since C++20 a template parameter type can be any LiteralType that has strong
structural equality.
Lambdas are classified as a LiteralType
++
Assignee: unassigned at gcc dot gnu.org
Reporter: john.boyer at tutanota dot com
Target Milestone: ---
In the following code https://godbolt.org/z/0jTk3e, GCC warns about the second
operand of a conditional expression having no effect, even though the second
operand is
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89949
John Boyer changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: john.boyer at tutanota dot com
Target Milestone: ---
The following code will get much better assembly if it is not in main():
for (int i = 0; i < 1024; ++i)
result[i] = first[i] * sec
12 matches
Mail list logo