[Bug c++/95440] New: [coroutines] ICE with static members in promise_type

2020-05-30 Thread bruck.michael at googlemail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at googlemail dot com Target Milestone: --- https://gcc.godbolt.org/z/PoAYhX #include struct task { struct promise_type { auto get_return_object() const { return task

[Bug c++/77771] New: internal compiler error: in cxx_eval_bit_field_ref, at cp/constexpr.c:2090

2016-09-28 Thread bruck.michael at googlemail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at googlemail dot com Target Milestone: --- struct S { charx[2]; unsignedy; }; constexpr bool func(const S s) { return s.x[0] != 42

[Bug c++/77277] New: -fdiagnostics-color=always disabled on _WIN32 for no discernible reason

2016-08-16 Thread bruck.michael at googlemail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at googlemail dot com Target Milestone: --- diagnostic-color.c completely disables colorization for the _WIN32 platform. However both the most recent Windows 10

[Bug c++/70938] New: internal compiler error: in tsubst_copy, at cp/pt.c:13008

2016-05-04 Thread bruck.michael at googlemail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at googlemail dot com Target Milestone: --- $ cat ice-20160504.cpp struct bar_t { int i; }; template struct foo_t { bar_t & bar = *(bar_t *)0x

[Bug c++/70755] [ARM] excessive struct alignment for globals

2016-04-23 Thread bruck.michael at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70755 --- Comment #3 from Michael Bruck --- (In reply to Michael Bruck from comment #2) > (In reply to Richard Earnshaw from comment #1) > > This is a deliberate design choice. By doing this we gain significant > > benefits from having aligned

[Bug c++/70755] [ARM] excessive struct alignment for globals

2016-04-23 Thread bruck.michael at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70755 --- Comment #2 from Michael Bruck --- (In reply to Richard Earnshaw from comment #1) > This is a deliberate design choice. By doing this we gain significant > benefits from having aligned objects, which helps with data copying and > other

[Bug c++/70755] New: [ARM] excessive struct alignment for globals

2016-04-21 Thread bruck.michael at googlemail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at googlemail dot com Target Milestone: --- Discussion at the end $ arm-none-eabi-g++.exe -std=c++11 -Ofast -c align_foo.cpp -S -fdata-sections $ cat align_foo.cpp struct S { bool val; }; S s1

[Bug tree-optimization/42046] missed optimization (a?b|1:b&~1) where b is a load from memory

2016-03-23 Thread bruck.michael at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42046 Michael Bruck changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/64774] [ARM/thumb] missed optimization: pc relative ldr used when constant can be derived from register

2015-01-28 Thread bruck.michael at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64774 --- Comment #2 from Michael Bruck bruck.michael at googlemail dot com --- (In reply to Richard Earnshaw from comment #1) Although the compiler tries to find some common cases, it is generally infeasible to detect all the possible permutations

[Bug target/64774] New: [ARM/thumb] missed optimization: pc relative ldr used when constant can be derived from register

2015-01-24 Thread bruck.michael at googlemail dot com
Severity: minor Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at googlemail dot com In the example the second write address of each function can either be generated using 'str' with an immediate offset

[Bug c++/56126] -fno-exceptions should activate -fcheck-new or issue diagnostic for all new operators without throw()

2015-01-09 Thread bruck.michael at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56126 --- Comment #14 from Michael Bruck bruck.michael at googlemail dot com --- (In reply to Olaf van der Spek from comment #12) Allocation failure is a simple error and should not kill your program. It's far from simple to handle properly

[Bug c++/56126] -fno-exceptions should activate -fcheck-new or issue diagnostic for all new operators without throw()

2015-01-09 Thread bruck.michael at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56126 --- Comment #15 from Michael Bruck bruck.michael at googlemail dot com --- (In reply to Jonathan Wakely from comment #13) (In reply to Michael Bruck from comment #11) throwing is undefined behavior with -fno-exceptions. No it isn't, it's

[Bug c++/56126] -fno-exceptions should activate -fcheck-new or issue diagnostic for all new operators without throw()

2015-01-08 Thread bruck.michael at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56126 --- Comment #11 from Michael Bruck bruck.michael at googlemail dot com --- (In reply to Olaf van der Spek from comment #10) I quoted it to illustrate that returning NULL is the intuitive option here, while abort() is a completely new approach

[Bug c++/56126] -fno-exceptions should activate -fcheck-new or issue diagnostic for all new operators without throw()

2015-01-06 Thread bruck.michael at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56126 --- Comment #9 from Michael Bruck bruck.michael at googlemail dot com --- Jonathan: Using -fno-exceptions says I do not want ISO C++ so quoting the standard isn't very relevant. Olaf: No, as you could (should?) abort/terminate instead

[Bug c++/56126] -fno-exceptions should activate -fcheck-new or issue diagnostic for all new operators without throw()

2015-01-03 Thread bruck.michael at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56126 --- Comment #5 from Michael Bruck bruck.michael at googlemail dot com --- @Olaf 5.3.4 New 13 [Note: unless an allocation function is declared with a non-throwing exception-specification (15.4), it indicates failure to allocate storage

[Bug c++/38612] Vague error diagnostics for pointer-to-member type incompatibility

2014-06-03 Thread bruck.michael at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38612 --- Comment #6 from Michael Bruck bruck.michael at googlemail dot com --- (In reply to Manuel López-Ibáñez from comment #4) What do you think? Looks great. My main beef was that the two errors were merged into one diagnostic.

[Bug c++/51311] bogus array bounds warning

2014-06-03 Thread bruck.michael at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51311 Michael Bruck bruck.michael at googlemail dot com changed: What|Removed |Added Status|UNCONFIRMED

[Bug c/59661] New: documentation: __builtin_FUNCTION / _FILE listed as returning int

2014-01-02 Thread bruck.michael at googlemail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at googlemail dot com http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html lists: — Built-in Function: int __builtin_FUNCTION () ... — Built-in Function: int

[Bug c++/59571] New: [C++11] ICE when casting inside static member constexpr brace initializer

2013-12-20 Thread bruck.michael at googlemail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at googlemail dot com $ cat ice.cpp template class struct foo { static constexpr int bar{(int)-1}; }; $ g++ -std=c++11 -c ice.cpp ice.cpp:4:37: internal compiler

[Bug libgcc/57256] New: Building for arm-elf with CFLAGS_FOR_TARGET=-mabi=aapcs-linux fails in libgcc/crtstuff.c

2013-05-12 Thread bruck.michael at googlemail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at googlemail dot com Created attachment 30100 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30100action=edit Diff

[Bug c++/56222] Pointer to member in lambda should not require this to be captured

2013-03-17 Thread bruck.michael at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56222 Michael Bruck bruck.michael at googlemail dot com changed: What|Removed |Added CC

[Bug c++/56126] New: -fno-exceptions produces constructors that rely on exceptions to signal errors in operator new

2013-01-27 Thread bruck.michael at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56126 Bug #: 56126 Summary: -fno-exceptions produces constructors that rely on exceptions to signal errors in operator new Classification: Unclassified Product: gcc Version: 4.6.3

[Bug c++/56126] -fno-exceptions produces constructors that rely on exceptions to signal errors in operator new

2013-01-27 Thread bruck.michael at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56126 --- Comment #2 from Michael Bruck bruck.michael at googlemail dot com 2013-01-28 05:12:57 UTC --- (In reply to comment #1) The warning says you could use -fcheck-new . Yes, but in normal code you never see the warning.

[Bug c++/56126] -fno-exceptions should activate -fcheck-new or issue diagnostic for all new operators without throw()

2013-01-27 Thread bruck.michael at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56126 --- Comment #3 from Michael Bruck bruck.michael at googlemail dot com 2013-01-28 05:25:43 UTC --- (In reply to comment #1) The warning says you could use -fcheck-new . Changed the title to account for this.

[Bug lto/51205] -flto discards memset/memcpy when only referenced by g++ generated code

2012-06-18 Thread bruck.michael at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51205 Michael Bruck bruck.michael at googlemail dot com changed: What|Removed |Added Status|WAITING

[Bug c++/51311] bogus array bounds warning

2011-11-27 Thread bruck.michael at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51311 --- Comment #2 from Michael Bruck bruck.michael at googlemail dot com 2011-11-28 02:34:16 UTC --- (In reply to comment #1) I don't think this is a bug as in_data can be changed by a different function other than bar(). Before I stripped

[Bug c++/51311] bogus array bounds warning

2011-11-27 Thread bruck.michael at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51311 --- Comment #3 from Michael Bruck bruck.michael at googlemail dot com 2011-11-28 02:44:16 UTC --- (In reply to comment #2) (In reply to comment #1) I don't think this is a bug as in_data can be changed by a different function other than

[Bug c++/51311] New: bogus array bounds warning

2011-11-26 Thread bruck.michael at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51311 Bug #: 51311 Summary: bogus array bounds warning Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/51205] New: -flto discards memset/memcpy when only referenced by g++ generated code

2011-11-17 Thread bruck.michael at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51205 Bug #: 51205 Summary: -flto discards memset/memcpy when only referenced by g++ generated code Classification: Unclassified Product: gcc Version: 4.6.1 Status: