[Bug c++/49122] [C++0x] initializer_list is broken

2013-01-08 Thread joy.career at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49122



Joyabrata Ghosh  changed:



   What|Removed |Added



 CC||joy.career at gmail dot com



--- Comment #3 from Joyabrata Ghosh  2013-01-08 
09:38:51 UTC ---

Hi All,



Would anyone from GCC team please confirm, when the broken initializer_list

feature will be fixed:



I tried with gcc 4.6.3 and it appears to be broken today.



Results: Behaviour is persistent and data returning from caller constructor

were  garbage values.





$ gcc -v

Using built-in specs.

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper

Target: i686-linux-gnu

Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro

4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs

--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr

--program-suffix=-4.6 --enable-shared --enable-linker-build-id

--with-system-zlib --libexecdir=/usr/lib --without-included-gettext

--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6

--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu

--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object

--enable-plugin --enable-objc-gc --enable-targets=all --disable-werror

--with-arch-32=i686 --with-tune=generic --enable-checking=release

--build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu

Thread model: posix

gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)


[Bug c++/49122] [C++0x] initializer_list is broken

2013-01-08 Thread joy.career at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49122



--- Comment #5 from Joyabrata Ghosh  2013-01-08 
10:48:36 UTC ---

Hi Jonathan Wakely,



Just wanted to confirm the doubt:



Do you wanted to mean that, the initializer_list behaviour is exactly like

this(work for local stack members) and there nothing work around possible to

avoid this observation ?



Thanks in advance,

Joyabrata Ghosh