This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52035] [4.7 regression] internal compiler error: tree code âtemplate_type_parmâ is not supported in LTO streams
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 06 Feb 2012 21:28:32 +0000
- Subject: [Bug c++/52035] [4.7 regression] internal compiler error: tree code âtemplate_type_parmâ is not supported in LTO streams
- Auto-submitted: auto-generated
- References: <bug-52035-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52035
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2012-02-06 21:28:32 UTC ---
The problem here is that when we go to instantiate QVector<int>, we step
through the members in order. When we instantiate the declaration of insert,
we're using the declaration from the out-of-class definition, which uses the
size_type typedef. But we haven't instantiated size_type yet, so tsubst thinks
that we're instantiating it now, and we end up just returning the version from
the template.