[Bug c++/53650] [4.7 Regression] large array causes huge memory use
pluto at agmk dot net
gcc-bugzilla@gcc.gnu.org
Tue Jan 22 21:07:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53650
Pawel Sikora <pluto at agmk dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pluto at agmk dot net
--- Comment #11 from Pawel Sikora <pluto at agmk dot net> 2013-01-22 21:05:45 UTC ---
(In reply to comment #9)
> Author: jason
> Date: Tue Jan 22 16:28:58 2013
> New Revision: 195380
>
> URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195380
> Log:
> PR c++/53650
> * call.c (type_has_extended_temps): New.
> * cp-tree.h: Declare it.
> * decl.c (check_initializer): Use build_aggr_init for arrays
> if it is false.
> * init.c (build_vec_init): Avoid mixed signed/unsigned arithmetic.
>
> Added:
> branches/gcc-4_7-branch/gcc/testsuite/g++.dg/init/array34.C
> Modified:
> branches/gcc-4_7-branch/gcc/cp/ChangeLog
> branches/gcc-4_7-branch/gcc/cp/call.c
> branches/gcc-4_7-branch/gcc/cp/cp-tree.h
> branches/gcc-4_7-branch/gcc/cp/decl.c
> branches/gcc-4_7-branch/gcc/cp/init.c
this patch breaks bootstrap:
../../gcc/cp/call.c: In function 'type_has_extended_temps':
../../gcc/cp/call.c:8852:7: error: 'for' loop initial declarations are only
allowed in C99 mode
../../gcc/cp/call.c:8852:7: note: use option -std=c99 or -std=gnu99 to compile
your code
More information about the Gcc-bugs
mailing list