[Bug c++/83000] New: Constraints for union-templates do not work

2017-11-14 Thread wilhelm.me...@hs-kl.de
++ 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

[Bug target/82931] Missing Optimization for Bit-Transfer (AVR Target)

2017-11-10 Thread wilhelm.me...@hs-kl.de
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

[Bug target/82931] Missing Optimization for Bit-Transfer (AVR Target)

2017-11-10 Thread wilhelm.me...@hs-kl.de
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.

[Bug target/82931] New: Missing Optimization for Bit-Transfer (AVR Target)

2017-11-10 Thread wilhelm.me...@hs-kl.de
: 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

[Bug tree-optimization/81248] No ipa-sra optimization for small struct / class

2017-06-30 Thread wilhelm.me...@hs-kl.de
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&).

[Bug tree-optimization/81248] No ipa-sra optimization for small struct / class

2017-06-29 Thread wilhelm.me...@hs-kl.de
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?

[Bug tree-optimization/81248] No ipa-sra optimization for small struct / class

2017-06-29 Thread wilhelm.me...@hs-kl.de
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

[Bug c++/81248] [AVR] No ipa-sra optimization for small struct / class

2017-06-29 Thread wilhelm.me...@hs-kl.de
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.

[Bug c++/81248] New: [AVR] No ipa-sra optimization for small struct / class

2017-06-28 Thread wilhelm.me...@hs-kl.de
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

[Bug c++/80773] New: Internal Compiler error on template parameter pack expansion

2017-05-16 Thread wilhelm.me...@hs-kl.de
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

[Bug c++/68372] [concepts] invalid use of pack expansion expression in member function template declaration

2017-05-15 Thread wilhelm.me...@hs-kl.de
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

[Bug c++/68372] [concepts] invalid use of pack expansion expression in member function template declaration

2017-04-12 Thread wilhelm.me...@hs-kl.de
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.