++
Assignee: unassigned at gcc dot gnu.org
Reporter: matt at ookypooky dot com
Created attachment 30247
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30247&action=edit
Code demonstrating the problem
It looks as though initializer_list can suffer from memory leaks - if during
construc
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: matt at ookypooky dot com
Target Milestone: ---
Demonstrated by the following code:
template
struct Foo
{
Foo (T) {}
auto operator () (int) { return 0; }
};
// this compiles
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89220
--- Comment #1 from Matt A ---
// ... but this compiles again
auto z = ((Foo(123)))(0);
++
Assignee: unassigned at gcc dot gnu.org
Reporter: matt at ookypooky dot com
Target Milestone: ---
Code as follows:
--
#include
#include
struct Foo
{
Foo () = default;
Foo (Foo &&f)
: x (f.x)
, y (f.y)
{
f.y = 0;
}
int
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89257
--- Comment #1 from Matt A ---
Apologies, I should have clarified this is on x86_64:
$ g++ -v
Using built-in specs.
COLLECT_GCC=/software/thirdparty/gcc/7.2.0-0.el7_64/bin/g++
COLLECT_LTO_WRAPPER=/software/thirdparty/gcc/7.2.0-0.el7_64/libexec/g
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: matt at ookypooky dot com
Target Milestone: ---
The following code:
--
#include
#include
int main ()
{
double x = 123.456;
std::cout << std::cbrt (x) - std::cbrt (1