https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118796
--- Comment #9 from Lukas Mosimann ---
Pretty sure they are related, just need to add one line back (line 7):
https://godbolt.org/z/5dqG3bj7e
to get the same error:
internal compiler error: in copy_reference_ops_from_ref, at
tree-ssa-sccvn.cc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118796
Lukas Mosimann changed:
What|Removed |Added
CC||lumosimann at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89881
--- Comment #2 from Lukas Mosimann ---
Yes you're right. But also GCC reports a warning, saying that the function is
only declared, but not defined.
This might be exactly what we want, if the function is only used at compile
time, as a kind of t
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: lumosimann at gmail dot com
Target Milestone: ---
Suppose you have a concept implementation (pre-C++17). This might be something
like this:
#include
template
struct check_concept : std::false_type {};
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: lumosimann at gmail dot com
Target Milestone: ---
Starting from GCC 8.1, the following code does not compile anymore:
```
struct Q {
int operator[](int i) { return 0
: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: lumosimann at gmail dot com
Target Milestone: ---
The following example behaves differently for GCC and Clang and I am almost
sure that Clang is right, because the second overload is clearly more
specialized:
template
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87663
--- Comment #7 from Lukas Mosimann ---
Thanks! I will do that.
First lets sum up state here such that it's not required to read through all
comments. I am playing around with integral constant and an "exponential
wrapper". First the "exponential
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87663
--- Comment #5 from Lukas Mosimann ---
I was able to track down the error. The problem is caused due to
`set_underlying_type` in cfamily/c_common.c. I tried to disable that function
by simply returning on entry - and compilation times for cc1plus
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87663
--- Comment #4 from Lukas Mosimann ---
Okay one last comment from my side (sorry for this two updates in short
intervals). I tried to further simplify it, and I came up with this code which
I think has the same problem.
```
template
struct inte
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87663
--- Comment #3 from Lukas Mosimann ---
```
template
struct integral_constant {
static constexpr T value = v;
using value_type = T;
using type = integral_constant;
};
template
struct F : integral_constant::value -
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87663
--- Comment #1 from Lukas Mosimann ---
By the way: I could drop parameter `Z` from `C` and `D`. I forgot to remove
that when I was experimenting with extensions like `f_n = f_{n-1} + f_{n-2} +
f_{n-3}`.
++
Assignee: unassigned at gcc dot gnu.org
Reporter: lumosimann at gmail dot com
Target Milestone: ---
Created attachment 44864
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44864&action=edit
Comparison
Let's try to calculate fiboncacchi numbers at compile time in exponentia
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84162
--- Comment #1 from Lukas Mosimann ---
The minimal example is already reduced a lot; until now, I wasn't able to track
the error down to an even smaller chunk of code.
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: lumosimann at gmail dot com
Target Milestone: ---
Created attachment 43316
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43316&action=edit
Segfault with flag -DV1
##
14 matches
Mail list logo