Segfault on compiling template defined in wrong namespace.

2008-08-11 Thread kenton
>Submitter-Id: net >Originator: >Organization: Google, Inc. >Confidential: no >Synopsis: Segfault on compiling template defined in wrong namespace. >Severity: non-critical >Priority: low >Category: c++ >Class: ice-on-illegal-code >Release: 4.0.3 (Ubuntu 4.0

Bug#781060: g++-4.9: Broken optimization when move-constructing from virtual subclass

2015-03-23 Thread Kenton Varda
ect output, possibly suggesting that this bug is Debian-specific. (You can test different compiler versions by passing the compiler command to use as the script's first parameter. By default it uses `g++`.) -Kenton ===Program text=== #include class A { public: bool moved = false; A()

Bug#781060: g++-4.9: Broken optimization when move-constructing from virtual subclass

2015-03-24 Thread Kenton Varda
cides that D's destructor is trivial. It seems to be affected by the presence of virtual inheritance. -Kenton ===copy constructors=== #include class A { public: mutable bool copied = false; A() = default; A(const A& other) { other.copied = true; } ~A() { printf