This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25632] [4.0/4.1/4.2 Regression] ICE with const int copied into two different functions
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jan 2006 14:12:10 -0000
- Subject: [Bug c++/25632] [4.0/4.1/4.2 Regression] ICE with const int copied into two different functions
- References: <bug-25632-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-01-03 14:12 -------
Caused by either:
2005-10-16 Mark Mitchell <mark@codesourcery.com>
PR c++/24389
* decl2.c (mark_used): Use uses_template_parms instead of
dependent_type_p.
* init.c (constant_value_1): Handle uninstantiated templates
specially.
* pt.c (instantiate_decl): Add sanity check.
or
2005-10-11 Mark Mitchell <mark@codesourcery.com>
PR c++/21089
* call.c (convert_like_real): Use decl_constant_value, not
integral_constant_value.
* init.c (constant_value_1): New function.
(integral_constant_value): Use it.
(decl_constant_value): Likewise.
* typeck.c (decay_conversion): Use decl_constant_value, not
integral_constant_value.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632