This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50473] [C++0x] ICE in type_has_nontrivial_copy_init, at cp/tree.c:2574
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 17 Oct 2011 10:53:44 +0000
- Subject: [Bug c++/50473] [C++0x] ICE in type_has_nontrivial_copy_init, at cp/tree.c:2574
- Auto-submitted: auto-generated
- References: <bug-50473-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50473
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org,
| |paolo.carlini at oracle dot
| |com
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-17 10:53:44 UTC ---
Jason, the call chain here is set_up_extended_ref_temp -> get_target_expr ->
get_target_expr_sfinae -> build_target_expr_with_type ->
type_has_nontrivial_copy_init, which hits gcc_assert (COMPLETE_TYPE_P (t)).
Looks like tweaking, eg, build_target_expr_with_type, to check for the
offending situation and return error_mark_node avoids the ICE, but I don't know
at the moment if something deeper is actually going on...