Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gnu at kosak dot com
Target Milestone: ---
Hello,
This program gives an internal compiler error.
=
#include
constexpr char wildcard = '*';
struct Foo {
char ch_ = wildcard
mal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: gnu at kosak dot com
Target Milestone: ---
Hello,
In the simple program below, tuple::operator< calls the underlying
Foo::operator< twice (10 < 9, then 9 < 10), even though
ty: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gnu at kosak dot com
Target Milestone: ---
Hello,
The program below gets the following warning message. I think the program is
well-formed (Clang 9.0.0 accepts it witho
++
Assignee: unassigned at gcc dot gnu.org
Reporter: gnu at kosak dot com
Target Milestone: ---
This small program takes over a minute to compile and produces a 160 meg object
file. sizeof(Bar) is large and it looks like the compiler wants to write down a
precompiled version of it to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87680
--- Comment #4 from Corey Kosak ---
To my eye it doesn't seem to be related to exceptions or initializer lists, so
I don't think it's the same bug, but you all would know better than me.
When I look at the .s file I see a giant sequence of the f
: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: gnu at kosak dot com
Target Milestone: ---
Created attachment 56556
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56556&action=edit
the .ii file from -sav
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112480
--- Comment #2 from Corey Kosak ---
Thanks for the reply and the correction about illegally running the destructor.
As for why the compiler can't do the optimization itself, I don't know, but the
optimization isn't applied here either:
```
voi
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: gnu at kosak dot com
Target Milestone: ---
Created attachment 56778
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56778&action=edit
the .ii file from --sav
iority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: gnu at kosak dot com
Target Milestone: ---
Created attachment 57132
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57132&action=edit
the .ii file from --save-temps
Hello,
I'm not