This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19634] [4.0 regression] Infinite memory usage on Alpha
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Feb 2005 04:35:31 -0000
- Subject: [Bug c++/19634] [4.0 regression] Infinite memory usage on Alpha
- References: <20050126014231.19634.falk@debian.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-02-10 04:35 -------
I agree that the C++ recursion is very ugly. The last time I looked at this, I
concluded it would be hard to fix, but now I'm not entirely certain that's true.
The problem comes from the call to push_access_scope in
get_mostly_instantiated_function_type. There's certainly no need to do access
control in this context; we could just save and restore flag_access_control.
The comment says "make sure that we can see identifiers" -- but I don't think
that makes any sense.
If that doesn't work, I think that rth's proposed fix is a reasonable
work-around. I'd be worried, though, that in the process of compiling the
function, after this point, we might need to mangle some other function (say,
one called from this one), and run into the same problem because of that.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19634