------- Comment #4 from amonakov at gcc dot gnu dot org 2009-11-25 11:48 ------- Tobias,
Please fix the testcase before committing to trunk, like this ('return 0' is needed to ensure the test does not fail when compiled correctly; 'noclone' to ensure that foo is not specialized for n=0): /* { dg-options "-O2 -fno-tree-ch" } */ #include <vector> using std::vector; vector<unsigned> & __attribute__((noinline,noclone)) foo(unsigned n) { vector<unsigned> *vv = new vector<unsigned>(n, 0u); return *vv; } int main() { foo(0); return 0; } (In reply to comment #3) -- amonakov at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amonakov at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42130