++
Assignee: unassigned at gcc dot gnu.org
Reporter: wilhelm.me...@hs-kl.de
Target Milestone: ---
In the following example, the requirement is not met. But the template-union
Test is instantiated:
template
requires (sizeof(T) > 1)
union Test {
};
int m
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82931
wilhelm.me...@hs-kl.de changed:
What|Removed |Added
Attachment #42574|0 |1
is obsolete
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82931
--- Comment #1 from wilhelm.me...@hs-kl.de ---
Should compile with -Os to reproduce the result.
: target
Assignee: unassigned at gcc dot gnu.org
Reporter: wilhelm.me...@hs-kl.de
Target Milestone: ---
Created attachment 42574
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42574&action=edit
Minimum complete verifying example
The attached example produces optim
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81248
--- Comment #7 from wilhelm.me...@hs-kl.de ---
Looks like also no optimization is done for non-template function
g(const uint8_t&).
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81248
--- Comment #6 from wilhelm.me...@hs-kl.de ---
Sorry for being this inpatient: do you have a timeline for the fix?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81248
--- Comment #4 from wilhelm.me...@hs-kl.de ---
Here a more stripped down example (without the volatile part):
#include
#include
struct A {
uint8_t m1{0};
};
volatile uint8_t v;
template
void f(const T& x) __attribute__((noin
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81248
--- Comment #2 from wilhelm.me...@hs-kl.de ---
The problem remains if A is really POD:
struct A {
uint8_t m1{0};
};
As I understand this optimization it should not depend on POD kind of the type
A.
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: wilhelm.me...@hs-kl.de
Target Milestone: ---
In the following minimal example, avr-g++ optimizes the call of f(n1) with
ipa-sra, that is it replaces the pointer-registers with a value-register. The
same should be
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: wilhelm.me...@hs-kl.de
Target Milestone: ---
Created attachment 41361
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41361&action=edit
Error messages from above example
The f
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68372
--- Comment #3 from wilhelm.me...@hs-kl.de ---
This ICE still exists in:
g++ (GCC) 8.0.0 20170515 (experimental)
Here is another minimal example:
template
concept bool FCallable() {
return requires(F) {
F::f();
};
}
class Test1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68372
--- Comment #2 from wilhelm.me...@hs-kl.de ---
This ICE exists still in gcc-7.0.1-20170412.
12 matches
Mail list logo