[Bug c++/14179] [3.4/4.0/4.1 Regression] out of memory while parsing array with many initializers

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jul 25 01:39:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-25 01:34 -------
Using the testcase from PR 12245:
cp/parser.c:285 (cp_lexer_new_main)                       0: 0.0%  372302336:88.5%          0: 0.0%  
104391168:79.7%          9
cp/parser.c:270 (cp_lexer_new_main)                       0: 0.0%     364288: 0.1%          0: 0.0%     102144: 
0.1%          1
cp/parser.c:12407 (cp_parser_initializer_list)     22770552:24.8%   23955160: 5.7%          0: 0.0%   
13171408:10.1%         19
cp/decl.c:4182 (reshape_init_array_1)                     0: 0.0%   23955160: 5.7%   22770552:24.6%   
13171408:10.1%         19
ggc-common.c:193 (ggc_calloc)                      16770368:18.3%          0: 0.0%   16805272:18.1%        
612: 0.0%         51
tree.c:828 (build_int_cst_wide)                         480: 0.0%          0: 0.0%   52180672:56.3%          0: 0.0%    
1630661
convert.c:671 (convert_to_integer)                 52187584:56.8%          0: 0.0%          0: 0.0%          0: 0.0%    
1630862


This is worse than the C front-end.

-- 


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



More information about the Gcc-bugs mailing list