https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113108
--- Comment #2 from Kyrylo Bohdanenko ---
Godbolt link (not the original example): https://godbolt.org/z/E1veMxcdx
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113108
--- Comment #1 from Kyrylo Bohdanenko ---
Compiled with -std=c++17 -O2 -Wall -Wextra -Wpedantic
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kyrylo.bohdanenko at gmail dot com
Target Milestone: ---
The following code causes GCC internal error:
template
struct Foo {
Foo& operator=(Foo&&) = default;
T data;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95454
Kyrylo Bohdanenko changed:
What|Removed |Added
CC||kyrylo.bohdanenko at gmail dot
com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106076
--- Comment #1 from Kyrylo Bohdanenko ---
The provided assembly is for -O2/-O3
: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: kyrylo.bohdanenko at gmail dot com
Target Milestone: ---
Consider the following struct:
#include
struct SomeClass {
uint16_t dummy1 : 1
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kyrylo.bohdanenko at gmail dot com
Target Milestone: ---
Consider the following C++ code
#define ALWAYS_TRUE(x) do { if (x) __builtin_unreachable(); } while (false)
int divide(int
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91953
--- Comment #5 from Kyrylo Bohdanenko ---
Sorry, the move constructor isn't necessary...
template
struct integral_constant {
constexpr integral_constant(const integral_constant&) noexcept {}
constexpr integral_constant() noexcept {}
};
int
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91953
--- Comment #4 from Kyrylo Bohdanenko ---
The problem can also be worked around by manually specifying "the holy trio" of
constructors and providing empty bodies (= default does not work)
This code compiles with GCC 8.3.0 and trunk (20190919):