[Bug c++/61751] New: Empty brace-initializer causes double destruction of unique_ptr

2014-07-08 Thread perso...@e-maxx.ru
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: perso...@e-maxx.ru Created attachment 33091 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33091action=edit Full example. Use of empty brace-initializer in default function argument

[Bug tree-optimization/49217] New: Wrong optimization of code

2011-05-28 Thread perso...@e-maxx.ru
...@gcc.gnu.org ReportedBy: perso...@e-maxx.ru Created attachment 24387 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24387 The program demostrating the bug (should return 0 if OK, but throws in case of wrong optimization) A bug in gcc 4.6.0 optimizer leads to incorrect program flow

[Bug tree-optimization/49218] New: Incorrect optimization of a 'for' loop creates an infinite loop

2011-05-28 Thread perso...@e-maxx.ru
Component: tree-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: perso...@e-maxx.ru Created attachment 24388 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24388 The program reads a number, and then it should output it back. After incorrect optimization, however

[Bug tree-optimization/48837] Wrong optimization of recursive function calls

2011-05-01 Thread perso...@e-maxx.ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48837 --- Comment #2 from e-maxx perso...@e-maxx.ru 2011-05-01 06:13:59 UTC --- It affects even 4.4.3.

[Bug tree-optimization/48837] New: Wrong optimization of recursive function calls

2011-04-30 Thread perso...@e-maxx.ru
AssignedTo: unassig...@gcc.gnu.org ReportedBy: perso...@e-maxx.ru Created attachment 24153 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24153 The example program - it should output ans = 1, but outputs ans = 0 in -O2 The program attached outputs global ans = 1 if compiled without

[Bug c++/48695] New: Runtime with an array of std::vectors

2011-04-19 Thread perso...@e-maxx.ru
...@gcc.gnu.org ReportedBy: perso...@e-maxx.ru Created attachment 24048 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24048 The entire program The following program crashes if compiled with -O2: for (int i=0; i=1; i++) for (int j=0; j=1; j++) { std::vectorint a[2