: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: boris_oncev at hotmail dot com
Target Milestone: ---
ICE on >=C++17 on all supported versions
https://godbolt.org/z/5exMcrhYz
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: boris_oncev at hotmail dot com
Target Milestone: ---
Example code:
struct SL{
template
SL(const char (&Str)[N]) {}
};
int foo(SL x) {
return 2;
}
int main() {
++
Assignee: unassigned at gcc dot gnu.org
Reporter: boris_oncev at hotmail dot com
Target Milestone: ---
Reproduction code on godbolt, showing ICE on 9.3 & 10.1 but works fine on 9.2
https://godbolt.org/z/-Dr7Lc
#include
struct A { };
struct B {
A a;
};
struct C { };
struct D {
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93328
--- Comment #5 from Boris ---
full code:
https://godbolt.org/z/zjNqYV
template
auto reverse(T num) {
// misses optimization when num is int32_t OK for int64_t
auto* bytes = reinterpret_cast(&num);
// misses optimization for both 3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93328
Boris changed:
What|Removed |Added
CC||boris_oncev at hotmail dot com
--- Comment #4
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94403
Boris changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
Assignee: unassigned at gcc dot gnu.org
Reporter: boris_oncev at hotmail dot com
Target Milestone: ---
full code:
https://godbolt.org/z/zjNqYV
template
auto reverse(T num) {
// misses optimization when num is int32_t OK for int64_t
auto* bytes = reinterpret_cast(&
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86648
--- Comment #2 from Boris ---
(In reply to Marek Polacek from comment #1)
> I don't see any ICE with -std=c++17.
Did you try it on godbolt, or locally(maybe you have newer version than
godbolt) ?
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: boris_oncev at hotmail dot com
Target Milestone: ---
On compiler explorer using the gcc (trunk) compiler I get an ICE.
https://godbolt.org/g/NPtXxH
The same code works on earlier versions 8.1 and