This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/70824] [6/7 Regression] cc1plus consumes all available memory on specific template code


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70824

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-05-29
     Ever confirmed|0                           |1

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
At some point cxx_eval_constant_expression under case VAR_DECL calls
decl_constant_value with a t like:

 <var_decl 0x7ffff6db6000 ._0
    type <array_type 0x7ffff6db0888
        type <integer_type 0x7ffff6d9c2a0 int readonly type_6 SI

and the call never returns. Each unshare_expr at the end of constant_value_1
certainly allocates memory.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]